{"id":37598682,"url":"https://github.com/lavajuno/lucidjson","last_synced_at":"2026-01-16T10:00:48.481Z","repository":{"id":217230819,"uuid":"743328811","full_name":"lavajuno/lucidjson","owner":"lavajuno","description":"Straightforward JSON serialization \u0026 deserialization library for Java.","archived":false,"fork":false,"pushed_at":"2024-10-29T21:23:35.000Z","size":206,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T23:44:21.758Z","etag":null,"topics":["java","json","ll-parser","parser","serialization"],"latest_commit_sha":null,"homepage":"https://lavajuno.github.io/lucidjson/","language":"Java","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/lavajuno.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":"2024-01-15T01:36:50.000Z","updated_at":"2024-10-29T21:23:40.000Z","dependencies_parsed_at":"2024-10-29T22:42:33.389Z","dependency_job_id":null,"html_url":"https://github.com/lavajuno/lucidjson","commit_stats":null,"previous_names":["lavajuno/lucidjson"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lavajuno/lucidjson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavajuno%2Flucidjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavajuno%2Flucidjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavajuno%2Flucidjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavajuno%2Flucidjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lavajuno","download_url":"https://codeload.github.com/lavajuno/lucidjson/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavajuno%2Flucidjson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["java","json","ll-parser","parser","serialization"],"created_at":"2026-01-16T10:00:28.768Z","updated_at":"2026-01-16T10:00:48.299Z","avatar_url":"https://github.com/lavajuno.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lucidjson\n\nStraightforward JSON serialization \u0026amp; deserialization library for Java.\n\n[Source Code](https://github.com/lavajuno/lucidjson)\n\n[Releases](https://github.com/lavajuno/lucidjson/releases)\n\n[Documentation](https://lavajuno.github.io/lucidjson/docs/index.html)\n\n## Features\n- Easy-to-use dynamic JSON objects\n- Simple interface for serialization/deserialization of classes\n- Serialize as minified or pretty JSON\n- Descriptive error reporting\n\n## Usage Examples\n\n\u003e Note: These are very basic examples and will be updated to include more realistic use cases.\n\nDeserializing a JSON object from a string:\n\n```java\nimport org.lavajuno.lucidjson.JsonObject;\n\npublic static void main(String[] args) {\n    String s = \"{ \\\"myKey\\\": \\\"myValue\\\" }\";\n    JsonObject o = JsonObject.from(s);\n}\n```\nSerializing a JSON object to a string:\n```java\nimport org.lavajuno.lucidjson.JsonObject;\n\npublic static void main(String[] args) {\n    String s = o.toJsonString(true);\n}\n```\n\n\u003e Note: The above methods are identical for JSON arrays.\n\nModifying JSON objects:\n\n```java\nimport org.lavajuno.lucidjson.JsonObject;\nimport org.lavajuno.lucidjson.JsonString;\n\npublic static void main(String[] args) {\n    JsonObject o = JsonObject.from(\"{ \\\"myKey\\\": \\\"myValue\\\" }\");\n    o.put(\"myKey2\", new JsonString(\"myValue2\"));\n}\n\n```\n\nImplementing JsonSerializable for a class:\n\n```java\nimport org.lavajuno.lucidjson.JsonNumber;\n\npublic class User implements JsonSerializable {\n    private String name;\n    private int age;\n\n    public User() {\n        name = \"\";\n        age = -1;\n    }\n\n    @Override\n    public JsonObject toJsonObject() {\n        JsonObject o = new JsonObject();\n        o.put(\"name\", new JsonString(name));\n        o.put(\"age\", new JsonNumber(age));\n        return o;\n    }\n\n    @Override\n    public void fromJsonObject(JsonObject o) {\n        this.name = ((JsonString) o.get(\"name\")).value();\n        this.age = ((JsonNumber) o.get(\"age\")).toInt();\n    }\n}\n\npublic static void main(String[] args) {\n    String s = \"{\\\"name\\\":\\\"bob\\\",\\\"age\\\":12345}\";\n    User a = new User();\n    a.fromJsonString(s); // deserialize from JSON string\n    String s = a.toJsonString(); // serialize to JSON string\n}\n\n```\n\n\u003e Classes only need to implement toJsonObject() and fromJsonObject().\n\u003e Serialization / deserialization to and from strings is handled by the interface.\n\u003e \n\u003e This behavior can be overridden if desired.\n\n## Use Cases\nlucidjson is designed to allow you to easily write custom JSON serialization \u0026 deserialization\nfunctions for classes. It can also be used to modify JSON documents without loading them\ninto a rigid class structure.\n\n## Licensing\n\nlucidjson is Free and Open Source Software, and is released under the MIT license. (See [`LICENSE`](LICENSE))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavajuno%2Flucidjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flavajuno%2Flucidjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavajuno%2Flucidjson/lists"}