Michael J. Ryan
1 min readFeb 4, 2019

--

It is *ONLY* JSON when it is a String or Text… when it is in code, it is an object literal. I know it’s nit-picking, but seeing things like this tend to irk me to no end.

Similarly, don’t have a variable/property named fooJSON that contains anything that isn’t a string… if it’s an object, it is “foo” if it’s “JSON” it is a stringified value.

--

--

Michael J. Ryan
Michael J. Ryan

Written by Michael J. Ryan

Food nerd (keto, omad, carnivore) — Programmer and JavaScript junkie! (node.js, mongodb, browser)

Responses (2)