Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

解析Post请求多层嵌套的Json数据

$
0
0

这样的嵌套的JSON数据大家都用什么方法在后台解析出来呢? { ‘teacherId’: 5, ‘childId’: 0, ‘unit’: 1, ‘lesson’: 1, ‘gameId’: { ‘game1’: 1, ‘game2’: 1 }, ‘listeningComprehension’: 7, ‘pronunciation’: 8, ‘interaction’: 9, ‘characterEvaluation’: { ‘tag’: { ‘tag1’: 1, ‘tag2’: 0, ‘tag3’: 1, ‘tag4’: 0, ‘tag5’: 1, ‘tag6’: 0, ‘tag7’: 1, ‘tag8’: 0 }, ‘evaluation’: “very good!” } }); 我以前用formidable模块,好像它不能解析嵌套的JSON数据,或者是我不会用?请大神指教一下新手。谢谢!


Viewing all articles
Browse latest Browse all 14821

Trending Articles