{"id":20030858,"url":"https://github.com/mayankpatel97/json-library-lite","last_synced_at":"2026-05-09T21:48:12.657Z","repository":{"id":190931954,"uuid":"453719135","full_name":"mayankpatel97/json-library-lite","owner":"mayankpatel97","description":"C code that parse and forms json strings ","archived":false,"fork":false,"pushed_at":"2022-01-30T15:43:28.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T17:47:25.864Z","etag":null,"topics":["json","stm32"],"latest_commit_sha":null,"homepage":"","language":"C","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/mayankpatel97.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":"2022-01-30T15:30:48.000Z","updated_at":"2024-01-01T17:57:16.000Z","dependencies_parsed_at":"2023-08-27T07:54:14.794Z","dependency_job_id":null,"html_url":"https://github.com/mayankpatel97/json-library-lite","commit_stats":null,"previous_names":["mayankpatel97/json-library-lite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayankpatel97%2Fjson-library-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayankpatel97%2Fjson-library-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayankpatel97%2Fjson-library-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayankpatel97%2Fjson-library-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mayankpatel97","download_url":"https://codeload.github.com/mayankpatel97/json-library-lite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241461905,"owners_count":19966774,"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":["json","stm32"],"created_at":"2024-11-13T09:28:52.793Z","updated_at":"2026-05-09T21:48:12.628Z","avatar_url":"https://github.com/mayankpatel97.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json parser lite\n\nThe code is developed in Codeblocks IDE in C language. It provides necessary features of json to a user.\n\nIts quit easy to assemble a json packet as you can see below \n\n\n    JSON_OBJECT jsonObject; // create object\n    char *jsonPacket;\n    jsonObject = json_create(255); // maximum size of your packet \n    json_addStrParameter(jsonObject,\"val1\",\"22\"); // add parameters to json\n    json_addStrParameter(jsonObject,\"val2\",\"11\");\n    json_addStrParameter(jsonObject,\"val3\",\"899089832\");\n    json_addIntParameter(jsonObject,\"val5\",20);\n    json_addIntParameter(jsonObject,\"val6\",-3);\n    json_addBoolParameter(jsonObject,\"val7\",true);\n    jsonPacket = json_getPacket(jsonObject); // get assembled packet\n    printf(jsonPacket); // print packet\n    json_dump(jsonObject); // dump json\n\nTo parse the packet below code can be used \n    \n    char json_string[] = \"{\\\"val1\\\":\\\"11\\\",\\\"val2\\\":\\\"22\\\",\\\"val3\\\":\\\"33\\\"}\"; // Json string \n    char MyVal[255];\n\n    if(json_parse(json_string) == JSON_OK) // check if its valid \n    {\n      \n        json_getStrValue(json_string,\"val1\",MyVal); \n        printf(MyVal);\n    }\n\n    \nuser can call \" json_getStrValue(json_string,\"val1\",MyVal); \" function to get a string value. It only requires a \"key\" as an argument and the buffer in which \nthe value is to be returned.\n\nfor any questions and queries, email me at mayankpatel468@gmail.com\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayankpatel97%2Fjson-library-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayankpatel97%2Fjson-library-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayankpatel97%2Fjson-library-lite/lists"}