{"id":26237470,"url":"https://github.com/big-ray/json-easy","last_synced_at":"2026-04-24T17:05:40.178Z","repository":{"id":57731325,"uuid":"132372312","full_name":"Big-Ray/json-easy","owner":"Big-Ray","description":"Json easy in java","archived":false,"fork":false,"pushed_at":"2018-08-15T07:37:50.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-05-25T13:06:10.163Z","etag":null,"topics":["java-8","json","json-api"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Big-Ray.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}},"created_at":"2018-05-06T20:11:21.000Z","updated_at":"2018-08-15T07:37:51.000Z","dependencies_parsed_at":"2022-09-26T22:10:21.357Z","dependency_job_id":null,"html_url":"https://github.com/Big-Ray/json-easy","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Big-Ray%2Fjson-easy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Big-Ray%2Fjson-easy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Big-Ray%2Fjson-easy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Big-Ray%2Fjson-easy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Big-Ray","download_url":"https://codeload.github.com/Big-Ray/json-easy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243346356,"owners_count":20275998,"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":["java-8","json","json-api"],"created_at":"2025-03-13T05:20:01.292Z","updated_at":"2025-12-24T17:52:07.786Z","avatar_url":"https://github.com/Big-Ray.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Json-Easy\n\nBuild status: [![build_status](https://travis-ci.org/Big-Ray/json-easy.svg?branch=master)](https://travis-ci.org/Big-Ray/json-easy)\nCoverage status : [![codecov](https://codecov.io/gh/Big-Ray/json-easy/branch/master/graph/badge.svg)](https://codecov.io/gh/Big-Ray/json-easy)\n\nJson-Easy has for vocation to be most simple to create, parse and manipulate Json with Java.\n\nJson-Easy is written in pure Java without any others dependencies to be lightweight as possible.\n\n# Getting Started\n## Create a JsonObject\n\n```java\nJsonObject jsObjectChild = JsonObject.createObject()\n\t.$( \"key1\", \"value1\" )\n\t.$( \"key2\", \"value2\" );\n\nJsonObject jsObject = JsonObject.createObject()\n    .$( \"key1\", \"value1\" )\n    .$( \"key2\", \"value2\" )\n    .$( \"key3\", 1 )\n    .$( \"key4\", 123.45 )\n    .$$( jsObjectChild )\n    .$( \"key5\", JsonObject.createObject()\n        .$( \"key1\", \"value1\" )\n        .$( \"key2\", \"value2\" )\n        .$( \"key3\", JsonArray.createArray()\n            .$( \"value1\" )\n            .$( \"value2\" )\n            .$( 3 )\n            .$( JsonObject.createObject()\n                .$( \"key1\", \"value1\" )\n            )\n        ))\n    ))\n);\n```\n\n## Create a JsonArray\n\n```java\nJsonArray jsArrayChild = JsonArray.createArray()\n\t.$( \"value1\" )\n\t.$( 12345 )\n\t.$( 1L );\n\nJsonArray jsArray = JsonArray.createArray()\n    .$( \"value1\" )\n    .$( \"value2\" )\n    .$( 1 )\n    .$( 123.45 )\n    .$$( jsArrayChild )\n    .$( JsonObject.createObject()\n        .$( \"key1\", \"value1\" )\n        .$( \"key2\", \"value2\" )\n        .$( \"key3\", JsonArray.createArray()\n            .$( \"value1\" )\n            .$( \"value2\" )\n            .$( 3 )\n            .$( JsonObject.createObject()\n                .$( \"key1\", \"value1\" )\n            )\n        ))\n    ))\n);\n```\n\n## JsonValue to json string\n\n```java\nJsonObject jsObject = JsonObject.createObject()\n    .$( \"key1\", \"value1\" )\n    .$( \"key2\", \"value2\" )\n);\nString json = JsObject.toJson();\n\n// Ouput {\"key1\":\"value1\", \"key2\":\"value2\"}\n```\n\n## JsonValue from json string\n\n```java\nJsonValue jsValue = JsonParser.parse( \"{\\\"key1\\\":\\\"value1\\\"}\" );\nJsonObject jsObject = jsonValue.as(JsonObject.class);\n\n// Other way\nJsonArray jsArray = JsonArray.fromJson( \"[\\\"value1\\\", 1234]\" );\n\n```\n\n## JsonObject and JsonArray manipulation\n\nJsonObject and JsonArray classes extends respectively LinkedHashMap\\\u003cString, JsonValue\\\u003e and ArrayList\\\u003cJsonValue\\\u003e, so, if you known how to manipule these Collections, you known to manipulate JsonObject and JsonArray.\n\n## License\n\nThis project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details.\n\n### Built With\n\n* [Maven](https://maven.apache.org/) - Dependency Management\n\n\n### Author\n\n* **Raynald BUQUET** - *Big-Ray*\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbig-ray%2Fjson-easy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbig-ray%2Fjson-easy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbig-ray%2Fjson-easy/lists"}