JSON: The de Facto Web Data Standard
Explore how JSON functions as the standard data interchange format on the web and learn to handle it in Rust using serde_json. This lesson guides you through parsing, serializing, and working with JSON values to manage web-based data effectively.
We'll cover the following...
JSON, JavaScript, and web data
JSON (JavaScript Object Notation) is a data interchange format. It is loosely based on a subset of JavaScript data structures and widely used on the web.
It is a format meant to be human-readable, with characteristics familiar to the C language family, C/C++, Java, JavasScript, and Rust.
As the name suggests, JSON describes objects. However, the language is not limited to working with objects. It’s also helpful for working with: values, strings, and arrays.
Unlike CSV, JSON is codified with ECMA-404.
JSON has become the de facto data interchange format for the web, especially for web services. It has many derivative formats such as GeoJSON, a IETF standard used for geographic data.
Rust and JSON
Rust has ...