Parse JSON response got from AJAX request through JavaScript

前端 未结 1 566
抹茶落季
抹茶落季 2020-12-03 01:34

I\'m geting a JSON response with an AJAX request through JavaScript.

Here is the response:

{\"responseCode\":400,\"errors\":false,\"submitted\":false         


        
相关标签:
1条回答
  • 2020-12-03 02:15

    Did you first parse json ?

    var data = JSON.parse(json);
    

    than read data.content

    0 讨论(0)
提交回复
热议问题