{"id":19745433,"url":"https://github.com/btd/json","last_synced_at":"2025-06-11T18:32:43.578Z","repository":{"id":4585741,"uuid":"5727834","full_name":"btd/json","owner":"btd","description":"My implementation of scala json library. Without any dependency (current only for benchmarks).","archived":false,"fork":false,"pushed_at":"2012-10-07T12:10:42.000Z","size":145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T20:45:26.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/btd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-08T11:17:43.000Z","updated_at":"2013-10-20T18:04:42.000Z","dependencies_parsed_at":"2022-09-20T23:40:30.651Z","dependency_job_id":null,"html_url":"https://github.com/btd/json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btd%2Fjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btd","download_url":"https://codeload.github.com/btd/json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241077145,"owners_count":19905725,"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-12T02:08:27.703Z","updated_at":"2025-02-27T23:47:13.108Z","avatar_url":"https://github.com/btd.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"Scala Json\n========\nI was tired with current implementations of json libraries in scala. That is why i wrote another one (currently it is only strict json). I do not worry that anyone will use it. It is written fully by me for myself.\nCurrently it is json parsing, printing and AST.\n\nMain ideas i taked from usage of google gson and lift json.\n\nTo use this library you only need to import package `com.github.btd.json`\n\nTo parse:\n```scala\nimport com.github.btd.json._\n\nJsonParser.parse(\"\"\"{\"key\": \"value\" , \"key\" : true, \"key\" : false, \"key\" : null, \"key\" : [], \"key\" : {}}\"\"\")\n//returns Obj((\"key\", \"value\"),(\"key\", true), (\"key\", false), (\"key\", Null), (\"key\", Arr()), (\"key\", Obj()))\n```\n\nTo print:\n```scala\nimport com.github.btd.json._\n\nJsonPrinter.compact(Arr())\n//returns \"[]\"\n```\n\nA bit later i will add serialization (scala version 2.10.*).\n\n\nBenchmarks\n----------\nFor benchmarking i used lift-json benchmark, but add my implementation.\n\nMy configuration:\n\n* CPU: i5 4 Core\n* RAM: 12 Gb\n\nJava:\n```\nmac:json den$ java -version\njava version \"1.6.0_35\"\nJava(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)\nJava HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)\n```\n\nResults (you can try on your machine, and say me results - i am interesting):\n```\n\u003e run\n[info] Running Jsonbench \nwarmup... done\nJackson 303ms\nwarmup... done\nlift-json 548ms\nwarmup... done\nMy  443ms\n```\n\nLicense\n-------\nApache Software Foundation 2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtd%2Fjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtd%2Fjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtd%2Fjson/lists"}