Javascript – JSON

JSON (Javascript Object Notation) is a format storing or transferring information/data. Every Javascript Object can be converted into JSON with stringify() method:

, <span>Javascript – JSON</span>, KandZ
, <span>Javascript – JSON</span>, KandZ
1st is the object, and the 2nd is JSON String

You can also convert a JSON string to a Javascript object using the parse() method

, <span>Javascript – JSON</span>, KandZ
, <span>Javascript – JSON</span>, KandZ

If you need to download/get JSON remote data, you can use Fetch or Xhr2 APIs

Fetch API

, <span>Javascript – JSON</span>, KandZ

, <span>Javascript – JSON</span>, KandZ

Xhr2 API

, <span>Javascript – JSON</span>, KandZ
, <span>Javascript – JSON</span>, KandZ

105920cookie-checkJavascript – JSONJavascript – JSON

Related posts

One Thought to “Javascript – JSON

Comments are closed.