yojson
Low-level JSON parsing and pretty-printing library for OCaml (by ocaml-community)
bs-json
Compositional JSON encode/decode library for BuckleScript (by glennsl)
yojson | bs-json | |
---|---|---|
2 | 2 | |
341 | 274 | |
2.1% | - | |
6.3 | 0.0 | |
3 days ago | over 1 year ago | |
OCaml | OCaml | |
BSD 3-clause "New" or "Revised" License | GNU Lesser General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
yojson
Posts with mentions or reviews of yojson.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2020-10-12.
-
Tsonnet #5 - Pretty-printing JSON
Yojson is a pretty common choice for parsing JSON in OCaml.
-
query-json: A story of cross-compilation with Reason
js_of_ocaml is a compiler that can be plugged to the OCaml's one and It makes it possible to run pure OCaml programs into JavaScript. As you can see, query-json uses menhir, sedlex and yojson
bs-json
Posts with mentions or reviews of bs-json.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-10-07.
-
Zod: TypeScript-first schema validation with static type inference
Coming from a ReasonML / OCaml codebase (frontend react), I'm seeing a lot to love with the pattern matching and sum types. Zod is already one of my favorites (coming from https://github.com/glennsl/bs-json).
Is 'retry / observability / error handling" something that comes from Effect?
-
ReScript JSON Typed Strongly
As I told already, you might use other tools to create the codecs layer. Take bs-json if it feels better. Or even force Js.Json.t to DTO conversion with Obj.magic if you know what you do.
What are some alternatives?
When comparing yojson and bs-json you can also consider the following projects:
query-json - Faster, simpler and more portable implementation of `jq` in Reason
bs-mocha
jsoo-react - js_of_ocaml bindings for ReactJS. Based on ReasonReact.
coq-serapi - Coq Protocol Playground with Se(xp)rialization of Internal Structures.
bs-emotion - BuckleScript bindings to Emotion
rescript-apollo-client - ReScript bindings for the Apollo Client ecosystem