4 ms·
JSON data is not always stored as texts.
by chj 12y ago
JSON data is not always stored as texts.
- disordinary 12y agoHow else would you store it? Javascript Object Notation is text. Other formats such as BSON are different. Or are you simply talking about javascript style object literals?
- chj 12y agoJSON is external representation of objects. You can store the actual data on server in any form you like. Doesn't mean you have to store them in text.
- disordinary 12y agoBut its Javascript Object Notation - Notation in this case implies text - if your storing it in something other than text it's not JSON. From Wikipedia: JavaScript Object Notation, is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs.
- chj 12y agoLike you pointed out JSON is used to transmit data objects, but storage of data objects on the server or local file is entirely different story. I hope I don't have to explain further.
- disordinary 12y agoYes, then its no longer json...