About 82,500 results
Open links in new tab
  1. javascript objects vs arrays vs JSON - Stack Overflow

    Despite much googling and hair-pulling, I can't for the life of me articulate the difference between json, objects, and arrays (in javascript). Below is how I've been using 2-dimensional data cont...

  2. What are the differences between JSON and JavaScript object?

    Oct 20, 2010 · First you should know what JSON is: It is language agnostic data-interchange format. The syntax of JSON was inspired by the JavaScript Object Literal notation, but there …

  3. javascript - What is the difference between JSON and Object …

    Of course JavaScript also provides a way to define/describe data, but the syntax is very specific to JavaScript. As a counter example, Python has the concept of tuples, their syntax is (x, y). …

  4. JavaScript object vs. JSON - Stack Overflow

    It is worth noting that a key in JSON must be enclosed in double quotes. If I convert the above object to JSON using var jSonString = JSON.stringify(testObject);, what is the difference …

  5. What's the difference between Javascript Object and JSON object

    Jun 27, 2011 · It is effectively an object literal in javascript notation (hence the name - JavaScript Object Notation => JSON). If you want to "compare" two object, convert the text to objects …

  6. dictionary - Map vs Object in JavaScript - Stack Overflow

    I just discovered this feature: Map: Map objects are simple key/value maps. That confused me. Regular JavaScript objects are dictionaries, so how is a Map different from a dictionary? …

  7. javascript - ¿Cuál es la diferencia entre JSON y un objeto? - Stack ...

    Mar 24, 2021 · A menudo se utilizan indistintamente los términos JSON y objeto (e incluso objeto JSON cuando hablamos de una estructura de datos, sobre todo en contextos relacionados …

  8. What is the most efficient way to deep clone an object in …

    Sep 23, 2008 · JSON.parse(JSON.stringify(obj)) to be the slowest way to deep clone an object (it is slower than jQuery.extend with deep flag set true by 10-20%). jQuery.extend is pretty fast …

  9. javascript - Difference between JSON.stringify and JSON.parse

    JSON.parse() function converts a JavaScript Object Notation (JSON) string into an object. For more information about these two functions, please refer to the following links.

  10. javascript - When to prefer JSON over XML? - Stack Overflow

    Nov 28, 2008 · JSON is not a javascript object unless it's instantiated in javascript. It happens to follow the format used for serializing javascript objects, but it's accessible (with the proper add …