JavaScript JSONThe JavaScript JSON is an acronym of JavaScript Object Notation. It provides a format for storing and transporting data. It is a lightweight human readable collection of data that can be accessed in a logical manner. Points to remember
JSON Syntax1. While working with .json file, the syntax will be like: 2. While working with JSON object in .js or .html file, the syntax will be like: JavaScript JSON MethodsLet's see the list of JavaScript JSON method with their description.
JavaScript JSON ExampleLet's see an example to convert string in JSON format using parse() and stringify() method. Test it NowOutput: Convert string in JSON format using parse() method XYZ Convert string in JSON format using stringify() method {"Name":"Krishna","Email":"XYZ","CN":12345} Next TopicJavaScript JSON |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India