{"id":19014708,"url":"https://github.com/mxro/java-json","last_synced_at":"2025-08-13T23:03:21.480Z","repository":{"id":25565125,"uuid":"28998438","full_name":"mxro/java-json","owner":"mxro","description":"An extremely simple library to render human-readable JSON with Java.","archived":false,"fork":false,"pushed_at":"2023-06-17T05:21:20.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-01T22:41:07.865Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mxro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","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":"2015-01-09T03:19:22.000Z","updated_at":"2023-11-15T01:44:27.000Z","dependencies_parsed_at":"2024-11-08T19:37:01.732Z","dependency_job_id":"5f211d92-b9f6-4b0f-a095-4c19df977268","html_url":"https://github.com/mxro/java-json","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxro%2Fjava-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxro%2Fjava-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxro%2Fjava-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxro%2Fjava-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxro","download_url":"https://codeload.github.com/mxro/java-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240054517,"owners_count":19740834,"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":[],"created_at":"2024-11-08T19:32:10.542Z","updated_at":"2025-02-21T17:20:17.293Z","avatar_url":"https://github.com/mxro.png","language":"Java","readme":"** **MOVED** ** This project has moved to [javadelight/delight-json](https://github.com/javadelight/delight-json) and is now part of the [Java Delight Suite](http://javadelight.org).\n\n[![Build Status](https://travis-ci.org/mxro/java-json.svg)](https://travis-ci.org/mxro/java-json)\n\n# Java JSON\n\n[Java JSON](https://github.com/mxro/java-json) is an extremely simple library to render human-readable JSON with Java.\n\n**Why:** A simple and very portable way to generate beautiful, human-readable JSON. \n\n## Usage\n\n### JSON Objects\n\n```java\nJSON json = JSON.create();\n\njson.add(\"text\", \"hello\");\njson.add(\"number\", 123);\n\njson.print();\n```\n\nResults in:\n\n```\n{\n    'text': 'hello',\n    'number': '123'\n}\n```\n\n### Nested JSON Objects\n\nJSON documents may be added as values to other JSON documents.\n\n```java\n\nfinal JSON json = JSON.create();\n\njson.add(\"text\", \"hello\");\njson.add(\"inner\", JSON.create().add(\"number\", 1234));\n\njson.print();\n```\n\nResults in:\n\n```\n{\n    'text': 'hello',\n    'inner': {\n        'number': '1234'\n    }\n}\n```\n\n### JSON Arrays\n\nArrays can be added as values of JSON documents.\n\n```java\nJSON json = JSON.create();\n        \njson.add(\"array\", JSON.createArray().push(\"1\").push(\"2\").push(\"3\"));\n\njson.print();\n```\n\nResults in:\n\n```\n{\n    'array': [\n        '1',\n        '2',\n        '3'\n    ]\n}\n```\n\n### Rendering\n\nDocuments can either be printed to standard out:\n\n```java\njson.print();\n```\n\nOr rendered as String:\n\n```java\nString str = json.render();\n```\n\n## Maven Dependency\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ede.mxro.json\u003c/groupId\u003e\n\t\u003cartifactId\u003ejava-json\u003c/artifactId\u003e\n\t\u003cversion\u003e[latest version]\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nFind latest version [here](http://modules.appjangle.com/java-json/latest/project-summary.html).\n\nAdd repository if required:\n\n```xml\n\u003crepositories\u003e\n\t\u003crepository\u003e\n\t\t\u003cid\u003eAppjangle Releases\u003c/id\u003e\n\t\t\u003curl\u003ehttp://maven.appjangle.com/appjangle/releases\u003c/url\u003e\n\t\u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\n## Compatibility\n\nThis project is compatible with the following environments:\n\n- Java 1.6+\n- GWT 2.5.0+\n- Android (any)\n- OSGi (any)\n\n## Further Resources\n\n- [JavaDocs](http://modules.appjangle.com/java-json/latest/apidocs/)\n- [Project Reports](http://modules.appjangle.com/java-json/latest/project-reports.html)\n- [Documentation with TOC](http://documentup.com/mxro/java-json)\n- [ReadTheDocs](http://java-json.readthedocs.org/en/latest/)\n\n[![Documentation Status](https://readthedocs.org/projects/java-json/badge/?version=latest)](https://readthedocs.org/projects/java-json/?badge=latest)\n\n## Licenses\n\n- Apache 2.0\n\n- MIT\n\nsee [LICENSE.TXT](https://github.com/mxro/java-json/blob/master/LICENSE.TXT)\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxro%2Fjava-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxro%2Fjava-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxro%2Fjava-json/lists"}