Software Alternatives & Reviews

JSON VS Jsonnet

Compare JSON VS Jsonnet and see what are their differences

JSON logo JSON

(JavaScript Object Notation) is a lightweight data-interchange format

Jsonnet logo Jsonnet

A powerful DSL for elegant description of JSON data.
  • JSON Landing page
    Landing page //
    2021-09-28
  • Jsonnet Landing page
    Landing page //
    2023-05-26

JSON videos

Parsing JSON Review - Part 1

More videos:

  • Review - Parsing JSON Review - Part 2
  • Review - JSon Foreign Vol.1 Review

Jsonnet videos

Jsonnet

More videos:

  • Review - Using Jsonnet to Package Together Dashboards, Alerts and Exporters - Tom Wilkie
  • Review - Webinar: Writing Less YAML – Using jsonnet and kubecfg to Manage Kubernetes Resources

Category Popularity

0-100% (relative to JSON and Jsonnet)
Mobile Apps
47 47%
53% 53
Configuration Management
40 40%
60% 60
Software Development
47 47%
53% 53
Productivity
59 59%
41% 41

User comments

Share your experience with using JSON and Jsonnet. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Jsonnet should be more popular than JSON. It has been mentiond 32 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

JSON mentions (13)

  • The Last Breaking Change | JSON Schema Blog
    The YAML 0.1 spec was sent to a public user group in May 2001. JSON was named in a State Software internal discussion. State Software was founded in March 2001. json.org was launched in 2002. Therefore you’re just wrong: YAML came out before JSON. Source: about 1 year ago
  • Why does wine give warnings about using 64bit prefixes, or has 32bit packages? Hasn't the world moved on from 32 bit a century ago?
    How come that doesn't apply to other libraries? For example, when I write Java or Node.js programs, I don't need to make sure packages like json.org or express.js have a 32bit or 64bit environment. What makes windows libs different than NPM libs? Source: over 1 year ago
  • “Ignore the f'ing haters ” And other lessons learned from creating a popular
    The first two sentences of the text on http://json.org are "JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write." It's a primary goal of JSON, it's fair to question whether it's successful at it. Personally, I'd much rather write TOML or S expressions. I don't like YAML at all, the whitespace sensitivity drives me nuts. - Source: Hacker News / over 1 year ago
  • Recording your JSON data to MCAP, a file format that support multiple serialization formats
    To help you make the transition, we’ve written a tutorial on how to write an MCAP writer in Python to record JSON data to an MCAP file. Source: almost 2 years ago
  • replace \" with "
    What you need to probably do is to step back and learn the format for JSON, and the core data structures that you will find in most languages:. Source: almost 2 years ago
View more

Jsonnet mentions (32)

  • A Reasonable Configuration Language
    Jsonnet[1] and kapitan[2] are the tools I currently use. Their learning curve is not optimal (and I tried to contribute to smoothen it with a jsonnet course[3] and a 'get started wit kapitan' blog post[4]), but once used to it it's hard to do without, and their combination makes them even more useful (esp. If you deploy K8s). In Ruud's case, Jsonnet might have been worth looking at as Hashicorp tools can be... - Source: Hacker News / 3 months ago
  • Pkl, a Programming Language for Configuration
    Kubernetes config is a decent example. I had ChatGPT generate a representative silly example -- the content doesn't matter so much as the structure: https://gist.github.com/cstrahan/528b00cd5c3a22e3d8f057bb1a75ea61 Now consider 100s (if not 1000s) of such files. I haven't given Pkl an in depth look yet, but I can say that the Industry Standard™ of "simple YAML" + string substitution (with delicate, error prone... - Source: Hacker News / 3 months ago
  • What Is Wrong with TOML?
    Maybe you'd like jsonnet: https://jsonnet.org/ I find it particularly useful for configurations that often have repeated boilerplate, like ansible playbooks or deploying a bunch of "similar-but" services to kubernetes (with https://tanka.dev). Dhall is also quite interesting, with some tradeoffs: https://dhall-lang.org/ A few years ago I did a small comparison by re-implementing one of my simpler ansible... - Source: Hacker News / 8 months ago
  • That people produce HTML with string templates is telling us something
    Apologies for the lack of context, and for missing this comment until today. Both are tools for defining kubernetes manifests (which are YAML) in a reusable manner. Jsonnet is a formally specified extension of JSON. It’s essentially a functional programming language (w/some object oriented features) that generates config files in JSON/YAML/etc, so it’s straightforward to determine whether an input file is valid,... - Source: Hacker News / 11 months ago
  • TOML: Tom's Obvious Minimal Language
    I like Google's Jsonnet [1], which has all of this except for 4. Jsonnet is quite mature, with fairly wide language adoption, and has the benefit of supporting expressions, including conditionals, arithmetic, as well as being able to define reusable blocks inside function definitions or external files. It's not suitable as a serialization format, but great for config. It's popular in some circles, but I'm sad that... - Source: Hacker News / 12 months ago
View more

What are some alternatives?

When comparing JSON and Jsonnet, you can also consider the following products

TOML - TOML - Tom's Obvious, Minimal Language

Dhall Configuration Language - A non-repetitive alternative to YAML

YAML - YAML 1.2 --- YAML: YAML Ain't Markup Language

Microsoft Office Access - Access is now much more than a way to create desktop databases. It’s an easy-to-use tool for quickly creating browser-based database applications.

Protobuf - Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data.

JSONFormatter.org - Online JSON Formatter and JSON Validator will format JSON data, and helps to validate, convert JSON to XML, JSON to CSV. Save and Share JSON