{"id":16948894,"url":"https://github.com/dentosal/easyjson","last_synced_at":"2026-05-19T02:41:29.951Z","repository":{"id":83101226,"uuid":"81218549","full_name":"Dentosal/EasyJson","owner":"Dentosal","description":"Easy-to-use JSON library written in Scala","archived":false,"fork":false,"pushed_at":"2017-04-26T11:09:23.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T06:25:40.904Z","etag":null,"topics":["json-library","json-parser","scala"],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/Dentosal.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":"2017-02-07T14:45:08.000Z","updated_at":"2017-02-07T18:26:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"39dd50ce-5cbe-42f1-b931-66dc5c89f386","html_url":"https://github.com/Dentosal/EasyJson","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dentosal%2FEasyJson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dentosal%2FEasyJson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dentosal%2FEasyJson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dentosal%2FEasyJson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dentosal","download_url":"https://codeload.github.com/Dentosal/EasyJson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244776273,"owners_count":20508503,"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":["json-library","json-parser","scala"],"created_at":"2024-10-13T21:52:37.691Z","updated_at":"2026-05-19T02:41:29.884Z","avatar_url":"https://github.com/Dentosal.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EasyJson\n\nAn easy-to-use and mostly functional style JSON library written in Scala. It provides an api similar to the one from [the json library of Python](https://docs.python.org/3.5/library/json.html).\n\n# Download\n\n[0.1.0 (Latest version), binary](https://github.com/Dentosal/EasyJson/releases/download/0.1.0/EasyJson.jar)\n\n# Usage\n\n```scala\nimport EasyJson._ // Import the library:\n\nobject Example extends App {\n    // Load the contents from a file\n    val data1 = EasyJson.load(\"example.json\");\n\n    // Or from a string\n    val data2 = EasyJson.loads(\"{\\\"test\\\": 123}\");\n\n    // Examine the data\n    assert(data2.select(\"test\").as[Int] * 2 == 246);\n\n    // Save the data to a file\n    EasyJson.dump(\"result.json\", data2);\n\n    // Or to a string\n    val text_data_1 = EasyJson.dumps(data1);\n\n    // Minify a json object\n    assert(EasyJson.dumps(EasyJson.loads(\"[1, 2, 3]\")) == \"[1,2,3]\");\n}\n```\n\n# Building\n\nInstall [sbt](http://www.scala-sbt.org/download.html).\n\nRun `sbt assembly`. Then run the example with `cd example \u0026\u0026 scala -classpath /path/to/EasyJson.jar Example.scala`. You can get the path from the output of `sbt assembly`.\n\nOr just:\n\n```bash\nJAR=\"$(sbt -no-colors assembly 2\u003e\u00261 | sed -En 's/\\[info\\][^/]+(\\/.+\\/target\\/.+\\.jar).*/\\1/p' | tr -d '\\n')\" \u0026\u0026 cd example \u0026\u0026 scala -classpath $JAR Example.scala \u0026\u0026 cd ..\n```\n\n# Running tests\n\n```\nsbt test\n```\n\n\n# TODO\n\n* Documentation would possibly be a cool thing to add\n* Verifying against a schema would be a nice addtion\n\n# License\n\nCopyright (c) 2017 Hannes Karppila\n\nPublished under the MIT License, see [LICENSE](/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdentosal%2Feasyjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdentosal%2Feasyjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdentosal%2Feasyjson/lists"}