By using this site, you acknowledge that you have read and understand our Cookie policy, Privacy policy and Terms .
access_time 11 months ago visibility9 comment 0 languageEnglish

JSON is commonly used in modern applications for data storage and transfers. Pretty much all programming languages provide APIs to parse JSON. 

JSON means JavaScript Object Notation. So of course we can easily parse JSON string in JavaScript.

JSON.parse function can be used to parse JSON in JavaScript.

Code snippet

var json = '{"Name":"A","Value":2}';
jsonObj = JSON.parse(json);
console.log(jsonObj.Name);
console.log(jsonObj.Value);
info Last modified by Raymond at 11 months ago * This page is subject to Site terms.

More from Kontext

local_offer node.js local_offer Javascript

visibility 32
thumb_up 0
access_time 11 days ago

After upgrading Visual Studio to 16.5.1, I encountered the following error in Task Runner Explorer: ***\Kontext.Web.Portals\node_modules\node-sass\lib\binding.js:15 throw new Error(errors.missingBinary()); ^ Error: Missing binding ***\Kontext.Web....

open_in_new View open_in_new Frontend & Javascript

local_offer Javascript

visibility 395
thumb_up 0
access_time 10 years ago

前几天帮一个学弟写的,JavaScript版本的杨辉三角,其实和其他C、Java等等版本的都差不多。代码如下:

open_in_new View open_in_new Frontend & Javascript

info About author

Dark theme mode

Dark theme mode is available on Kontext.

Learn more arrow_forward
Kontext Column

Kontext Column

Created for everyone to publish data, programming and cloud related articles. Follow three steps to create your columns.

Learn more arrow_forward
info Follow us on Twitter to get the latest article updates. Follow us