Home > Back-end >  Json spread value resolution have any good idea?
Json spread value resolution have any good idea?

Time:12-29

Was directly use serialize () the form submission, but should be sorted, to form the dynamic column after the serialize are sorted by 0 arrays like this
But I actually value is
PlanDetailList [0]
PlanDetailList [0]
Such, becomes planDetailList to background [0], planDetailList sort [1] is wrong
I turned into a json format for data transfer in
 
{"id":"4","numberPlates":"苏B8888888","driver":"李四","tel":"1384949494","takeTime":"2020-12-28","carTonnage":"45","carLength":"7.2","carWidth":"2.2","index":"2","planDetailList[0]":{"orderNumber":"s00001","takeGoodsId":"1","warehouse":"东厂区","materielName":"超级导线","weight":"10","salesman":"李四","salesmanTel":"1448488484","address":"江苏省无锡市12312312"},"planDetailList[1]":{"orderNumber":"s00002","takeGoodsId":"2","warehouse":"西厂区","materielName":"光纤","weight":"10","salesman":"tom","salesmanTel":"131313131313","address":"江苏盐城市东台市xxxxx"}}


I back end how to parse? PlanDetailList [0] name this dynamic is not fixed
  • Related