{"id":21314870,"url":"https://github.com/devdyna/json-active","last_synced_at":"2025-03-15T21:24:00.101Z","repository":{"id":214056949,"uuid":"735581530","full_name":"DevDyna/JSON-active","owner":"DevDyna","description":"JSON as programming language","archived":false,"fork":false,"pushed_at":"2023-12-28T20:20:00.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T10:24:30.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevDyna.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-25T12:38:07.000Z","updated_at":"2024-05-31T16:01:05.000Z","dependencies_parsed_at":"2023-12-25T14:30:35.540Z","dependency_job_id":"6202b07d-0ab2-495e-86b5-e50c8499ee74","html_url":"https://github.com/DevDyna/JSON-active","commit_stats":null,"previous_names":["devdyna/json-active"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDyna%2FJSON-active","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDyna%2FJSON-active/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDyna%2FJSON-active/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDyna%2FJSON-active/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevDyna","download_url":"https://codeload.github.com/DevDyna/JSON-active/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243791136,"owners_count":20348423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T18:16:18.330Z","updated_at":"2025-03-15T21:24:00.071Z","avatar_url":"https://github.com/DevDyna.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" # Json as Programming language\n\n[made on nodejs]\n\n ##  # REQUIRE NODEJS INSTALLED TO RUN\n\n #  ## Syntax\nlike normal standard json files\n```json\n{\n\t\"name\" : [value]\n}\n\n{\n\t\"name\" : [\n\t\t\t\"index_1\": 10,\n\t\t\t\"index_2\": \"text127\"\n\t\t\t]\n}\n```\nalso can be used as pure json if writen right\n\n\n ## Example 1\n```json\n{\n    \"main\": {},\n\n    \"my_custom_function_name\": {\n        \"return\": null\n    }\n\n}\n```\n\nOn this example you can find :\n- `main function` empty\n- a `custom function` with `return` value `null` that isn't used on main function\n\n\n## function logic:\n\nto call the function\u003cbr /\u003e\n\n``\n\"output\" : \"function\" \n``\u003cbr /\u003e\n``\n\"function\" : \"input\"\n``\u003cbr /\u003e\n \n`input` and `output` can be `null` as empty\n\n## function structure:\n\n### basic structure\n```json\n\"function_name\" : {\n\t\"return\": [value]\n}\n```\n### advanced structure\n```json\n\"main\": {\n\t\"function_name\" : 10\n},\n\"function_name\" : {\n\t\"return\" : \"$input\"\n}\n```\n$input is a system variable that is equal at input value/variable that was call as parameter like common myfunction(myparameter)\nalso it can be used as direct return value or applied some changes\n\n### advanced structure #2\n```json\n\"main\": {\n\t\"function_name\" : [\n\t\"0\" : 10,\n\t\"1\" : 2,\n\t\"two\" : 222\n\t]\n},\n\n\"function_name\" : {\n\t\"return\" : \"$input[two]\"\n}\n```\n`$input` can be used as list with a name index\n\n ##list of system variables:\n\n`$input`   \t\t\t\u003c- only usable on custom function system , outside still null\n`$input[name]` \t\t\t\u003c- also can be used as list based on a name index\n`$rnd[]`\t\t\t\u003c- random variable\n\n ## Example 2\n \n```json\n{\n    \"main\": {\n\t\t\"null\" : \"my_custom_output_function\"\n\t\t\n\t},\n\n    \"my_custom_output_function\": {\n\t\t\n\t\t\"sys.out\": {\n            \"0\": \"Hello\",\n            \"1\": \"World\"\n        },\n\t\t\n        \"return\": null\n    }\n\n}\n```\n\nOn this example you can find :\n- `main function` with a function as equal `null` that can extend the main function without save any value as result\n- `custom function` that contain same return as before example and a `sys.out` as **system.output** where as based on a priority system (0 first of 1) , it send on output values\n\n ## Example 3\n \n```json\n{\n    \"main\": {\n        \"sys.var.set\": [{\n            \"id\": \"my_var\",\n            \"value\": 10\n        }]\n    }\n}\n```\n\nOn this example you can find :\n- `main function` with `sys.var.set` as variable.set where you can create a list of variables that require a `id` to define a name and optional a `value` to initialize\n \n```json\n{\n    \"main\": {\n        \"sys.var.set\": [{\n            \"id\": \"my_one_var\",\n            \"value\": 10\n        },{\n            \"id\": \"my_two_var\",\n            \"value\": 222\n        }]\n    }\n}\n```\n\nOn this example you can find:\n- same example before but with two variables : `my_one_var` \u0026 `my_two_var`\n \n \n## list of default functions:\n\n- `sys` : [\n    - `out` = output system\n\t- `var` : [\n\t\t- `set` = create and define variables\n\t\t- `change` = modify created variables\n\t\t]\n\t\t\n\t]\n\n\n\n\t \n ## Example 4\n \n```json\n{\n    \"main\": {\t\n\t \"var.set\": [{\n         \"id\": \"my_var\",\n         \"value\": 10\n        }]\n\t\t\n\t\t\n\t},\n\t\"plusplus\":{\n\t\t\"return\": \"$input+2\"\n\t}\n\t\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdyna%2Fjson-active","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevdyna%2Fjson-active","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdyna%2Fjson-active/lists"}