{"id":15061163,"url":"https://github.com/ocaml-community/yojson","last_synced_at":"2025-04-11T22:30:04.919Z","repository":{"id":1906464,"uuid":"2833613","full_name":"ocaml-community/yojson","owner":"ocaml-community","description":"Low-level JSON parsing and pretty-printing library for OCaml","archived":false,"fork":false,"pushed_at":"2025-03-31T08:53:43.000Z","size":826,"stargazers_count":339,"open_issues_count":19,"forks_count":61,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-04T19:12:42.222Z","etag":null,"topics":["json","ocaml","parser","yojson"],"latest_commit_sha":null,"homepage":"https://ocaml-community.github.io/yojson/","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ocaml-community.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-11-23T05:51:10.000Z","updated_at":"2025-04-03T16:53:13.000Z","dependencies_parsed_at":"2024-09-29T06:40:58.926Z","dependency_job_id":"f39c393d-3e49-42ad-b5e1-b1661688c739","html_url":"https://github.com/ocaml-community/yojson","commit_stats":{"total_commits":363,"total_committers":43,"mean_commits":8.44186046511628,"dds":0.6639118457300275,"last_synced_commit":"a9c234f0a0fa143ec35917e814ad20040f8610e1"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocaml-community%2Fyojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocaml-community%2Fyojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocaml-community%2Fyojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocaml-community%2Fyojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocaml-community","download_url":"https://codeload.github.com/ocaml-community/yojson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489364,"owners_count":21112556,"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","ocaml","parser","yojson"],"created_at":"2024-09-24T23:10:33.451Z","updated_at":"2025-04-11T22:30:04.895Z","avatar_url":"https://github.com/ocaml-community.png","language":"OCaml","readme":"Yojson: JSON library for OCaml\n==============================\n\n[![Build Status](https://img.shields.io/endpoint?url=https%3A%2F%2Fci.ocamllabs.io%2Fbadge%2Focaml-community%2Fyojson%2Fmaster\u0026logo=ocaml)](https://ci.ocamllabs.io/github/ocaml-community/yojson)\n\nThis library parses JSON data into a nested OCaml tree data structure.\n\n\nLibrary documentation\n---------------------\n\nCurrently at https://ocaml-community.github.io/yojson/\n\n\nExamples\n--------\n\nA simple example on how to parse JSON from a string literal.\n\n```ocaml\nlet json_string = {|\n  {\"number\" : 42,\n   \"string\" : \"yes\",\n   \"list\": [\"for\", \"sure\", 42]}|}\n(* val json_string : string *)\n\nlet json = Yojson.Safe.from_string json_string\n(* val json : Yojson.Safe.t *)\n\nlet () = Format.printf \"Parsed to %a\" Yojson.Safe.pp json\n```\n\n\nRelated tooling\n---------------\n\n`Yojson` is a pretty common choice for parsing JSON in OCaml, as such it is the\nbase for a number of tools and libraries that are built on top of it.\n\n* [`ppx_deriving_yojson`](https://github.com/ocaml-ppx/ppx_deriving_yojson) to\n  automatically generate code that converts between `Yojson.Safe.t` and custom\n  OCaml types\n* [`ppx_yojson_conv`](https://github.com/janestreet/ppx_yojson_conv), an\n  alternative to `ppx_deriving_yojson` from Jane Street with different design\n  decisions\n* [`atd`](https://github.com/ahrefs/atd), generates mapping code from `.atd`\n  specification files and can be used in multiple languages\n* [`jsonm`](https://erratique.ch/software/jsonm) is an alternate JSON parser\n  that parses JSON into a stream of items, so the complete data structure does\n  not have to be in memory.\n\nHelp wanted\n-----------\n\nYojson is developed and maintained by volunteers \u0026mdash; users like you.\n[Various issues](https://github.com/ocaml-community/yojson/issues) are in need\nof attention. If you'd like to contribute, please leave a comment on the issue\nyou're interested in, or create a new issue. Experienced contributors will\nguide you as needed.\n\nThere are many simple ways of making a positive impact. For example,\nyou can...\n\n* Use the software in your project.\n* Give a demo to your colleagues.\n* Share the passion on your blog.\n* Tweet about what you're doing with `Yojson`.\n* Report difficulties by creating new issues. We'll triage them.\n* Ask questions on StackOverflow.\n* Answer questions on\n  [StackOverflow](https://stackoverflow.com/search?q=yojson).\n* Discuss usage on the [OCaml forums](https://discuss.ocaml.org/).\n* Pick a [task](https://github.com/ocaml-community/yojson/issues) that's easy\n  for you.\n\nCheck out in particular\n[good first time issues](https://github.com/ocaml-community/yojson/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+time+issue%22)\nand other issues with which\n[we could use some help](https://github.com/ocaml-community/yojson/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22).\n\n\nLicense\n-------\n\n`Yojson` is licensed under the 3-clause BSD license, see `LICENSE.md` for\ndetails.\n","funding_links":[],"categories":["Serialization","\u003ca name=\"OCaml\"\u003e\u003c/a\u003eOCaml"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focaml-community%2Fyojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focaml-community%2Fyojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focaml-community%2Fyojson/lists"}