{"id":19453743,"url":"https://github.com/samfisherirl/jsons-for-ahkv2","last_synced_at":"2025-09-14T07:31:04.794Z","repository":{"id":201181407,"uuid":"658234963","full_name":"samfisherirl/Jsons-for-AHKv2","owner":"samfisherirl","description":"Jsons.ahk for AHKv2, the lazy man's Json. Handles and converts objects and classes.  Also functions as obj -\u003e str converter.","archived":false,"fork":false,"pushed_at":"2023-10-19T12:32:49.000Z","size":44,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T20:59:18.334Z","etag":null,"topics":["ahk","ahkv2","autohotkey","autohotkeyv2","json"],"latest_commit_sha":null,"homepage":"","language":"AutoHotkey","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/samfisherirl.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}},"created_at":"2023-06-25T07:12:31.000Z","updated_at":"2024-11-05T01:07:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"54abdd85-a5e8-4021-be62-baab528ef498","html_url":"https://github.com/samfisherirl/Jsons-for-AHKv2","commit_stats":null,"previous_names":["samfisherirl/jsons-for-ahkv2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samfisherirl%2FJsons-for-AHKv2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samfisherirl%2FJsons-for-AHKv2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samfisherirl%2FJsons-for-AHKv2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samfisherirl%2FJsons-for-AHKv2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samfisherirl","download_url":"https://codeload.github.com/samfisherirl/Jsons-for-AHKv2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232958516,"owners_count":18602770,"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":["ahk","ahkv2","autohotkey","autohotkeyv2","json"],"created_at":"2024-11-10T17:06:04.270Z","updated_at":"2025-01-08T00:36:48.946Z","avatar_url":"https://github.com/samfisherirl.png","language":"AutoHotkey","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jsons.ahk for AHKv2\nThe lazy man's json. Inspired by: https://pypi.org/project/jsons/\n\nForked from TheArkive https://github.com/TheArkive/JXON_ahk2\n\nThis is a normal Json library, with a built in function to handle and convert all Objects to Maps. Feed anything into Dump, and it should return a proper serialized string. Autohotkeyv2 \u0026 AHKv2\n\n\n# Use\n\nSerialize \n```autohotkey\nvar := Jsons.Dump(obj, indent:=0)\n```\n\nConvert to obj\n```autohotkey\nobj := Jsons.Load(\u0026text)\n```\n\nIn the future, I'll try to convert to objects a la https://github.com/Jim-VxE/AHK-Lib-JSON_ToObj\n\ntest input:\n```autohotkey\nclass Test\n{\n    __New(){\n        this.valA := \"valA\"\n        this.valB := \"valB\"\n    }\n}\nClassObj := Test()\nObjB := {1:2}\nMapA := Map(\"test\", {ObjB:\"x\"})\nx := {\n    ClassObjects: [ClassObj,ClassObj],\n    1: 2,\n    4: [1, ClassObj],\n    z: Map(1,2),\n    ObjB:ObjB,\n    y:MapA\n}\njdata := Jsons.Dump(x, indent:=2)\n```\n\noutput:\n\n```json\n{\n  \"1\": 2,\n  \"4\": [\n    1,\n    {\n      \"valA\": \"valA\",\n      \"valB\": \"valB\"\n    }\n  ],\n  \"ClassObjects\": [\n    {\n      \"valA\": \"valA\",\n      \"valB\": \"valB\"\n    },\n    {\n      \"valA\": \"valA\",\n      \"valB\": \"valB\"\n    }\n  ],\n  \"ObjB\": {\n    \"1\": 2\n  },\n  \"y\": {\n    \"test\": {\n      \"ObjB\": \"x\"\n    }\n  },\n  \"z\": {\n    \"1\": 2\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamfisherirl%2Fjsons-for-ahkv2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamfisherirl%2Fjsons-for-ahkv2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamfisherirl%2Fjsons-for-ahkv2/lists"}