{"id":28991301,"url":"https://github.com/init-io/initjson","last_synced_at":"2026-04-30T16:33:49.724Z","repository":{"id":300919433,"uuid":"1007589752","full_name":"Init-io/InitJson","owner":"Init-io","description":"InitJson is a 🔥 Arduino JSON library that wraps the power of ArduinoJson in a sleek, Gen Z-coded API. Parse, create, and flex JSON objects and arrays with ease, complete with chainable methods, dope error handling via JSONException, and pretty-printed output for that aesthetic vibe. Lightweight, lit, and ready to make your IoT projects pop off.","archived":false,"fork":false,"pushed_at":"2025-06-24T08:39:05.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-30T16:33:44.585Z","etag":null,"topics":["arduino","arduino-json","arduino-library","arduinojson","arduinol","initjson","json","json-api","jsonlibrary","microcontroller"],"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/Init-io.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,"zenodo":null}},"created_at":"2025-06-24T08:20:51.000Z","updated_at":"2025-06-24T15:48:19.000Z","dependencies_parsed_at":"2025-06-24T09:46:37.517Z","dependency_job_id":null,"html_url":"https://github.com/Init-io/InitJson","commit_stats":null,"previous_names":["init-io/initjson"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Init-io/InitJson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Init-io%2FInitJson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Init-io%2FInitJson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Init-io%2FInitJson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Init-io%2FInitJson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Init-io","download_url":"https://codeload.github.com/Init-io/InitJson/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Init-io%2FInitJson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32470879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["arduino","arduino-json","arduino-library","arduinojson","arduinol","initjson","json","json-api","jsonlibrary","microcontroller"],"created_at":"2025-06-25T01:14:43.370Z","updated_at":"2026-04-30T16:33:49.707Z","avatar_url":"https://github.com/Init-io.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n# 🔥 InitJson - The JSON Lib That's Straight Fire 🔥\n\n## Yo, what's good?\n\nWelcome to **InitJson**, the slickest JSON library for Arduino that's got all the vibes.\n\nWe’re here to yeet those clunky JSON struggles into the void and make your Arduino projects **pop off** with clean, easy JSON handling.\n\nBuilt on the shoulders of the GOAT, **ArduinoJson**, InitJson is like that extra shot of espresso in your code — smooth, powerful, and ready to flex.\n\n---\n\n## ☕ What's the Tea?\n\n**InitJson** is a lightweight, no-cap JSON library for Arduino that lets you **parse, create, and manipulate JSON objects and arrays like a boss.**\n\nWhether you’re cooking up some IoT bangers or just vibing with sensor data, this lib’s got your back.\nIt’s giving **simplicity and power** in one tight package.\n\n---\n\n## 🚀 Why InitJson Slaps:\n\n* ✅ **EZ to Use:** Chain methods like you’re dropping bars in a rap battle.\n* ✅ **Built on ArduinoJson:** We stan the OG, we just gave it a Gen Z glow-up.\n* ✅ **Error Handling That’s Bussin’:** `JSONException` keeps your code from yeeting itself into chaos.\n* ✅ **No Skips:** Handles JSON objects, arrays, and all the nested goodness with zero fuss.\n* ✅ **Lightweight AF:** Won’t bloat your Arduino sketch, so you can keep it 💯.\n\n---\n\n## 🎒 What's in the Bag?\n\n* **`JSONObject`**: Your main character for key-value JSON objects. Put, get, remove, and iterate like a pro.\n* **`JSONArray`**: For when you need to stack those values in a list. Add, remove, and loop through arrays with ease.\n* **`JSONException`**: Catches those \"oh no\" moments when your JSON ain’t valid.\n* **Chaining Vibes:** Methods like `put()` return the object so you can keep the flow going.\n* **Pretty Printing:** `toStringPretty()` makes your JSON look like it’s ready for the 'Gram.\n\n---\n\n## 😎 Shade on the Competition\n\nOther JSON libs? **Snooze.**\nThey’re either too chunky, too basic, or straight-up ghost you when errors hit.\n\nInitJson **takes the W** by keeping it simple, wrapping ArduinoJson’s power in a clean API, and throwing in some spicy error handling.\n\n*No shade to ArduinoJson though — Benoît Blanchon’s lib is the 🐐, we’re just remixing it for the culture.*\n\n---\n\n## 🚀 How to Get This W\n\n1. **Clone or Download:** Yoink this repo from GitHub.\n2. **Install:** Drop it in your Arduino `libraries/` folder or add it via the Library Manager (if we’re in there, check it!).\n3. **Include:** Slap `#include \u003cInitJson.h\u003e` in your sketch.\n4. **Vibe Out:** Start parsing and creating JSON like you’re coding for clout.\n\n---\n\n## 📝 Code That Slaps\n\n```cpp\n#include \u003cInitJson.h\u003e\nusing namespace InitJson;\nvoid setup() {\n  Serial.begin(115200);\n\n  // Create a JSON object, no cap\n  JSONObject json;\n  json.put(\"name\", \"Rayhan\")\n      .put(\"age\", 42)\n      .put(\"isCool\", true);\n\n  // Nested JSON? Bet\n  JSONArray vibes;\n  vibes.put(\"chill\").put(\"lit\").put(\"fire\");\n  json.put(\"vibes\", vibes);\n\n  // Print that pretty JSON\n  Serial.println(json.toStringPretty());\n\n  // Iterate keys like a TikTok dance\n  JSONObject::Iterator keys = json.keys();\n  while (keys.hasNext()) {\n    Serial.print(\"Key: \");\n    Serial.println(keys.key());\n    keys.next();\n  }\n}\n\nvoid loop() {\n  // We out here chilling\n}\n```\n\n### 💻 Output:\n\n```json\n{\n  \"name\": \"Rayhan\",\n  \"age\": 42,\n  \"isCool\": true,\n  \"vibes\": [\n    \"chill\",\n    \"lit\",\n    \"fire\"\n  ]\n}\n```\n\n---\n\n## 🧨 Methods That Pop Off\n\n### JSONObject:\n\n* `put(key, value)` → Add key-value pairs (chainable).\n* `get(key)` → Yoink a value by key.\n* `optString(key, default)` → Get a string or fallback.\n* `optInt(key, default)` → Get an int or default.\n* `optDouble(key, default)` → Get a double or default.\n* `optBoolean(key, default)` → Get boolean or default.\n* `has(key)` → Check if the key exists.\n* `remove(key)` → Yeet the key-value pair.\n* `length()` → How many keys you got?\n* `toString()` → Compact JSON string.\n* `toStringPretty()` → JSON string but make it ✨aesthetic✨.\n* `keys()` → Iterator to loop through keys like you’re scrolling X.\n\n---\n\n### JSONArray:\n\n* `put(value)` → Add a value (chainable).\n* `get(index)` → Get by index.\n* `optString(index, default)` → Get a string or fallback.\n* `optInt(index, default)` → Get an int or fallback.\n* `optDouble(index, default)` → Get a double or fallback.\n* `optBoolean(index, default)` → Get boolean or fallback.\n* `remove(index)` → Yeet the element.\n* `length()` → How long’s the array?\n* `toString()` → Compact JSON array string.\n* `toStringPretty()` → JSON array string but make it ✨aesthetic✨.\n\n---\n\n### JSONException:\n\n* `what()` → Spill the tea on what went wrong.\n\n---\n\n## 🫂 Dependencies (The Squad)\n\n* **ArduinoJson v7.0.0+**: The backbone of this lib. Big props to Benoît Blanchon for keeping it 💯.\n* **Arduino Core**: Gotta have that Arduino framework to make it all work.\n\n---\n\n## 🛠️ Installation (No Cap)\n\n1. Download the repo or grab the zip from GitHub.\n2. Toss it into your Arduino `libraries/` folder.\n3. (Optional) Add it via the Arduino IDE’s Library Manager.\n4. Include it with `#include \u003cInitJson.h\u003e` and start cooking.\n\n---\n\n## 🌟 Contributing (Join the Glow-Up)\n\nWanna make this lib even more lit?\nSlide into the GitHub issues or PRs with your ideas.\nWe’re all about that open-source vibe. Just keep it chill and follow the code style.\n\n---\n\n## 📜 License (The Legal Tea)\n\nMIT License — Do what you want, just don’t be sus.\nCheck the LICENSE file for the full deets.\n\n---\n\n## 📣 Shoutouts\n\n* ArduinoJson for being the 🐐.\n* The Arduino community for keeping the maker vibes alive.\n* You, for checking out InitJson and making your projects pop off.\n\n---\n\n## 🐛 Bugs or Questions?\n\nHit us up on GitHub Issues.\nWe’ll slide into your DMs (or issue threads) with the fix or some wisdom.\n\n---\n\n### 🔥 InitJson: The JSON lib that’s serving looks and functionality.\n\n### Let’s get this bread! 🍞\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finit-io%2Finitjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finit-io%2Finitjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finit-io%2Finitjson/lists"}