Updating a JSON object using Javascript

前端 未结 9 1534
Happy的楠姐
Happy的楠姐 2020-12-07 13:37

How can i update the following JSON object dynamically using javascript or Jquery?

var jsonObj = [{\'Id\':\'1\',\'Username\':\'Ray\',\'FatherName\':\'Thompso         


        
9条回答
  •  攒了一身酷
    2020-12-07 14:08

    use:

    var parsedobj = jQuery.parseJSON( jsonObj);
    

    This will only be useful if you don't need the format to stay in string. otherwise you'd have to convert this back to JSON using the JSON library.

提交回复
热议问题