Addepar / ember-json-viewer

An Ember Addon that adds a json-viewer component for showing collapsible/expandable json.
https://addepar.github.io/ember-json-viewer
MIT License
3 stars 5 forks source link

Support `null` values #8

Closed bantic closed 3 years ago

bantic commented 3 years ago

Prior to this, null was incorrectly treated as an empty object, because typeof null === 'object'.

Was reading https://2ality.com/2021/01/undefined-null-revisited.html and realized that ember-json-viewer forgot that null is a valid value in JSON.