×
          
              
          
      
      Clear all filters including search bar
          
        Valeri Tandilashvili's Personal Professional Blog
      
    ObjectArrayvar obj = { name: "John", age: 30, city: "New York" };
// Converts object into JSON string
var myJSON = JSON.stringify(obj);
// Puts the string into element with id: demo
document.getElementById("demo").innerHTML = myJSON;JSON.parse()let txt = '{"name":"John", "age":30, "city":"New York"}'
// Converts JSON string into a JavaScript object.
let obj = JSON.parse(txt);
// Puts the data into "p" element with id: demo
document.getElementById("demo").innerHTML = obj.name + ", " + obj.age;- a function
- a date
- a symbol
- undefined,[][]{
   "books": [
      { "language":"Java" , "edition":"second" },
      { "language":"C++" , "lastName":"fifth" },
      { "language":"C" , "lastName":"third" }
   ]
}JSONJavaScript Object NotationJSONJSONJSONJavaScriptJSONJSONto/fromapplication/jsonJSON.jsonJSON- More secure
- Faster
- Stores a larger amount of data
- Stored data is not sent with every server requestLocal storage is per domain. All pages from one domain can store and access the same data.<progress>Status: <progress min="0" max="100" value="35"> 
</progress>Use the <progress> tag in conjunction with JavaScript to dynamically display a task's progress