sedlex
An OCaml lexer generator for Unicode (by ocaml-community)
yojson
Low-level JSON parsing and pretty-printing library for OCaml (by ocaml-community)
sedlex | yojson | |
---|---|---|
2 | 2 | |
251 | 340 | |
0.8% | 1.8% | |
5.8 | 6.3 | |
27 days ago | 24 days ago | |
OCaml | OCaml | |
MIT License | BSD 3-clause "New" or "Revised" License |
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.
sedlex
Posts with mentions or reviews of sedlex.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-01-29.
-
Tsonnet #1 - JSON literals
Disclaimer: it's worth noting that ocamllex is not unicode friendly. I want Tsonnet to support unicode, but I'm postponing this complexity for later. Perhaps using the sedlex package for that.
-
query-json: A story of cross-compilation with Reason
Started with the goal to create something useful and learn during the process. Was very interested in learning about how to write parsers and compilers using the OCaml stack: menhir and sedlex, compile it to any architecture and try to compile it to JavaScript.
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
What are some alternatives?
When comparing sedlex and yojson you can also consider the following projects:
js_of_ocaml - Compiler from OCaml to Javascript.
bs-json - Compositional JSON encode/decode library for BuckleScript
bs-emotion - BuckleScript bindings to Emotion
query-json - Faster, simpler and more portable implementation of `jq` in Reason