{"id":16006220,"url":"https://github.com/xlmnxp/json","last_synced_at":"2025-04-09T18:30:46.265Z","repository":{"id":47759402,"uuid":"231405840","full_name":"xlmnxp/Json","owner":"xlmnxp","description":"Json Deserializer for Alusus Language","archived":false,"fork":false,"pushed_at":"2021-08-14T06:33:28.000Z","size":16,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T20:36:37.741Z","etag":null,"topics":["alusus","deserializer","json"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xlmnxp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-02T15:11:39.000Z","updated_at":"2020-12-11T07:09:31.000Z","dependencies_parsed_at":"2022-09-13T00:14:35.608Z","dependency_job_id":null,"html_url":"https://github.com/xlmnxp/Json","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlmnxp%2FJson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlmnxp%2FJson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlmnxp%2FJson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlmnxp%2FJson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xlmnxp","download_url":"https://codeload.github.com/xlmnxp/Json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248087615,"owners_count":21045551,"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":["alusus","deserializer","json"],"created_at":"2024-10-08T11:40:26.429Z","updated_at":"2025-04-09T18:30:46.223Z","avatar_url":"https://github.com/xlmnxp.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Json\nJson Deserializer for Alusus Language\n\n# How to Import\n```\nimport \"Srl/Console.alusus\"\nimport \"Apm.alusus\"\nApm.importFile(\"xlmnxp/Json\");\n\ndef jsonObject: Json = \"{\\\"glossary\\\": {\\\"title\\\": \\\"example glossary\\\",\\\"GlossDiv\\\": {\\\"title\\\": \\\"S\\\", \\\"GlossList\\\": {\\\"GlossEntry\\\": {\\\"ID\\\": \\\"SGML\\\",\t\\\"SortAs\\\": \\\"SGML\\\", \\\"GlossTerm\\\": \\\"Standard Generalized Markup Language\\\", \\\"Acronym\\\": \\\"SGML\\\", \\\"Abbrev\\\": \\\"ISO 8879:1986\\\", \\\"GlossDef\\\": {\\\"para\\\": \\\"A meta-markup language, used to create markup languages such as DocBook.\\\",\\\"GlossSeeAlso\\\": [\\\"GML\\\", \\\"XML\\\"]}, \\\"GlossSee\\\": \\\"markup\\\"}}}}}\";\nSrl.Console.print(jsonObject.getObject(\"glossary\").getObject(\"GlossDiv\").getObject(\"GlossList\").getObject(\"GlossEntry\").getObject(\"GlossDef\").getObject(\"GlossSeeAlso\").getString(1)); // output: XML\n```\n\n# Handlers\n- Json~**init(str: ptr[Array[Char]])**\u003cbr\u003e\n```\ninitialize Type with parse JSON from String\n```\n\n# Methods\n- Json.**get(key: ptr[Array[Char]])**: String\u003cbr\u003e\n```\nreturn value of key as String with Quotations\n```\n- Json.**get(key: Int)**: String\u003cbr\u003e\n```\nreturn value of index as String with Quotations\n```\n\n- Json.**getString(key: ptr[Array[Char]])**: String\u003cbr\u003e\n```\nreturn value of key as String without Quotations\n```\n- Json.**getString(key: Int)**: String\u003cbr\u003e\n```\nreturn value of index as String without Quotations\n```\n\n- Json.**getInt(key: ptr[Array[Char]])**: Int\u003cbr\u003e\n```\nreturn value of key as Int\n```\n- Json.**getInt(key: Int)**: Int\u003cbr\u003e\n```\nreturn value of index as Int\n```\n\n- Json.**getFloat(key: ptr[Array[Char]])**: Float\u003cbr\u003e\n```\nreturn value of key as Float\n```\n- Json.**getFloat(key: Int)**: Float\u003cbr\u003e\n```\nreturn value of index as Float\n```\n\n- Json.**getBool(key: ptr[Array[Char]])**: Bool\u003cbr\u003e\n```\nreturn value of key as Boolean\n```\n- Json.**getBool(key: Int)**: Bool\u003cbr\u003e\n```\nreturn value of index as Boolean\n```\n\n- Json.**getObject(key: ptr[Array[Char]])**: Json\u003cbr\u003e\n```\nreturn value of key as new Json\n```\n- Json.**getObject(key: Int)**: Json\u003cbr\u003e\n```\nreturn value of index as new Json\n```\n\n- Json.**isObject()**: Bool\u003cbr\u003e\n```\nreturn true only when json is Object\n```\n- Json.**isArray()**: Bool\u003cbr\u003e\n```\nreturn true only when json is Array\n```\n- Json.**getLength()**: Int\u003cbr\u003e\n```\nreturn length of Children \n```\n\n- Json.**hasQuotes(stringWithQuotes: String)**: Bool\u003cbr\u003e\n\n# Operators\n- **this** = **ptr[array[Char]]**]\n```\ndef jsonObject: Json = \"{lang: 'alusus'}\"\n```\n- **this** = **String**\n```\ndef str: String = \"{lang: 'alusus'}\"\ndef jsonObject: Json = str\n```\n\n# LICENSE\nMIT LICENSE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlmnxp%2Fjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxlmnxp%2Fjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlmnxp%2Fjson/lists"}