Home > front end >  {productId: 5, goodsNum: 10, spec: [{name: color, value: 'red'}, {name: 'size' v
{productId: 5, goodsNum: 10, spec: [{name: color, value: 'red'}, {name: 'size' v

Time:10-03

{productId: 5, goodsNum: 10, spec: [{name: color, value: 'red'}, {name: 'size' value: "300"}]} this form of back end should be how to accept

CodePudding user response:

The standard json format is the attribute name and string values to add double quotation marks
 {5, "productId" : "goodsNum" : 10, "spec" : [{" name ":" color ", "value" : "red"}, {" name ":" size ", "value" : "300"}]} 

CodePudding user response:

Then in the back-end using json parsing function,
  • Related