Representative Line: JSONception

Date:

Share:

I am on record as not particularly loving JSON as a serialization format. It's fine, and I'm certainly not going to die on any hills over it, but I think that as we stripped down the complexity of XML we threw away too much.

On the flip side, the simplicity means that it's harder to use it wrong. It's absent many footguns.

Well, one might think. But then Hootentoot ran into a problem. You see, an internal partner needed to send them a JSON document which contains a JSON document. Now, one might say, "isn't any JSON object a valid sub-document? Can't you just nest JSON inside of JSON all day? What could go wrong here?"

"value":"[{\"value\":\"1245\",\"begin_datum\":\"2025-05-19\",\"eind_datum\":null},{\"value\":\"1204\",\"begin_datum\":\"2025-05-19\",\"eind_datum\":\"2025-05-19\"}]",

This. This could go wrong. They embedded JSON inside of JSON… as a string.

Hootentoot references the hottest memes of a decade and a half ago to describe this Xzibit:

Yo dawg, i heard you like JSON, so i've put some JSON in your JSON

[Advertisement]
BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!

Source link

Subscribe to our magazine

━ more like this

What You (Want to)* Want

November 2022Since I was about 9 I've been puzzled by the apparent contradiction between being made of matter that behaves in a predictable way, and the...

The Only Thing ‘Happy Gilmore 2’ Needs More of Is Christopher McDonald

Warning: Contains spoilers.Happy Gilmore 2 is, among other things, a chosen-family reunion. Virtually every living star from the original makes it into the sequel....

Sydeon Joins New Balance As A Gaming Ambassador

Authentic brand–creator partnerships are like a good outfit: effortless, memorable, and sells itself. For Sydeon, although she’s made a name for herself streaming gameplay...

Everything I Bought From the Nordstrom Anniversary Sale 2025

The Nordstrom Anniversary Sale is open to the public through August 3rd. I shopped the early access for the second day and found some...

Four Things I Already Like About the Galaxy Watch 8

We may earn a commission from links on this page. ...