{"id":20749208,"url":"https://github.com/tharushaudana/esp-idf-heapless-json-stream-parser","last_synced_at":"2026-04-29T21:34:56.109Z","repository":{"id":216540613,"uuid":"709768464","full_name":"tharushaudana/esp-idf-heapless-json-stream-parser","owner":"tharushaudana","description":"The ESP-IDF Heapless JSON Stream Parser is a memory-efficient library for ESP-IDF that allows parsing JSON streams without using dynamic memory allocation. It simplifies parsing JSON data directly from a stream, making it ideal for memory-constrained ESP32 projects.","archived":false,"fork":false,"pushed_at":"2024-05-16T17:40:53.000Z","size":27,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T13:52:44.184Z","etag":null,"topics":["esp-idf","esp32","esp8266","heapless","json-parser"],"latest_commit_sha":null,"homepage":"","language":"C++","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/tharushaudana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-25T11:10:49.000Z","updated_at":"2025-01-25T06:43:12.000Z","dependencies_parsed_at":"2024-01-10T20:14:05.718Z","dependency_job_id":"5b824d11-d1d8-4ec1-b2f0-75a7cbc23072","html_url":"https://github.com/tharushaudana/esp-idf-heapless-json-stream-parser","commit_stats":null,"previous_names":["tharushaudana/esp-idf-heapless-json-stream-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tharushaudana/esp-idf-heapless-json-stream-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tharushaudana%2Fesp-idf-heapless-json-stream-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tharushaudana%2Fesp-idf-heapless-json-stream-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tharushaudana%2Fesp-idf-heapless-json-stream-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tharushaudana%2Fesp-idf-heapless-json-stream-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tharushaudana","download_url":"https://codeload.github.com/tharushaudana/esp-idf-heapless-json-stream-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tharushaudana%2Fesp-idf-heapless-json-stream-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["esp-idf","esp32","esp8266","heapless","json-parser"],"created_at":"2024-11-17T08:21:36.079Z","updated_at":"2026-04-29T21:34:56.079Z","avatar_url":"https://github.com/tharushaudana.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP-IDF Heapless JSON Stream Parser\n\nThis library provides a heapless JSON stream parser for ESP-IDF, allowing you to parse JSON streams without using dynamic memory allocation (heap).\n\n## Features\n\n- Parse JSON streams without using heap memory\n- Minimal memory footprint\n- Simple integration into ESP-IDF projects\n- Supports parsing JSON objects and arrays\n- Handles parsing of JSON events from an event source stream\n\n## Usage\n\n1. Include the library in your ESP-IDF project:\n\n   ```bash\n   git clone https://github.com/your-username/esp-idf-heapless-json-stream-parser.git\n   ```\n\n2. Include the library in your component makefile:\n\n   ```makefile\n   COMPONENT_SRCDIRS += path/to/esp-idf-heapless-json-stream-parser\n   ```\n\n3. Initialize the JSON stream parser with a callback function to handle parsed JSON objects or arrays:\n\n   ```cpp\n   #include \"esp_heapless_json_stream_parser.h\"\n\n   json_stream_parser jparser([](std::string path, json_val_t value) {\n       // Handle parsed JSON tokens here\n   });\n   ```\n\n4. Initialize the event source stream parser with callbacks for events and data:\n\n   ```cpp\n   #include \"event_source_stream_parser.h\"\n\n   event_source_stream_parser eparser(\"event\", \"data\", [](std::string event) -\u003e on_evts_data_char_cb_t {\n       // Handle event parsing and return a data callback\n       return [\u0026](char c) {\n           jparser.parse(c); // Parse JSON data from the event\n       };\n   });\n   ```\n\n5. Parse JSON data as it becomes available in your stream input:\n\n   ```cpp\n   // Example: Parsing JSON data from an event source stream\n   size_t s = strlen(event_source_str);\n   int i = 0;\n\n   while (i \u003c s) {\n       eparser.parse(event_source_str[i]);\n       i++;\n   }\n   ```\n\n6. Cleanup the parser handle when finished:\n\n   ```cpp\n   // No cleanup necessary for heapless JSON stream parser\n   ```\n   \n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftharushaudana%2Fesp-idf-heapless-json-stream-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftharushaudana%2Fesp-idf-heapless-json-stream-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftharushaudana%2Fesp-idf-heapless-json-stream-parser/lists"}