JSONs. Packets that Fill Most of Data Pipelines.

Photo by Pietro Jeng on Unsplash

Why you might care

Just the basics

{“Geeks”:[
{ “firstName”:”Vivek”, “lastName”:”Kothari” },
{ “firstName”:”Suraj”, “lastName”:”Kumar” },
{ “firstName”:”John”, “lastName”:”Smith” },
{ “firstName”:”Peter”, “lastName”:”Gregory” }
]}
<Geeks>
<Geek><firstName>Vivek</firstName><lastName>Kothari</lastName</Geek>
<Geek><firstName>Suraj</firstName><lastName>Kumar</lastName></Geek>
<Geek><firstName>John</firstName><lastName>Smith</lastName</Geek>
<Geek><firstName>Peter</firstName><lastName>Gregory</lastName</Geek>
</Geeks>
  • JSON is built with two primary parts: keys and associated values.
  • Key is always a string enclosed in quotation marks.
  • Value has more freedom. A value can be a number, boolean expression, string, an array, or an object.
  • Key value pairs are combined with clear rule: key is followed by a colon which is followed by the value.
  • Key/value pairs are separated with a comma.
  • boolean — binary alternatives of true and false,
  • number — an integer,
  • string — text,
  • array — classic associative array of values,
  • object — an associative array of key/value pairs.
Photo by Luke Chesser on Unsplash

Back to the context

source: the author

--

--

--

Analytics engineer. Quantum information enthusiast.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Docker images

Angular Template Type Checking

Profiling, Refactoring & Design Patterns

Reliably canceling pending prerender hints

Referential Transparency in JavaScript

Fetching from an API

Homing Missile Part 3

Problem-Solving for Software Developers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michał Poła

Michał Poła

Analytics engineer. Quantum information enthusiast.

More from Medium

Design For Understanding: Visualizing Children’s Vocabulary Development

Engineering With Intent: How Drumline Improved My Skills as a Developer

Visualizing My Experience At Amal Academy

Multiple Undo (the first time around)

A screenshot of Microsoft Word for Mac showing the “undo” button in an expanded state.