ScriptyChrisS
Reactiflux5y ago
2 replies
ScriptyChris

ScriptyChris – 17-39 Jan 13

I am quoting, because of already archived topic
Askeladden – 17-10 Jan 13
Json and object are same
@Padmanabh No, JSON is not the same as object (although syntax is quite similar to objects in JavaScript - hence the name). JSON is a data interchange format (in form of text) and object is a value stored in memory. Objects (most often) do have a prototype, but JSON doesn't. JSON cannot contain functions, regexes and circular references.
There is some more differences:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON#javascript_and_json_differences
Was this page helpful?