Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
192 views
in Technique[技术] by (71.8m points)

json - How to convert an array into array of object

I have response type like a simple array for example

"ImagePath": [
  traffic.jpeg,
  prow-featured.jpg,
   604190.jpg
  ]

but I want this type so plz guide me how to convert and get output like this

"ImagePath": [
   {"images": "traffic.jpeg"},
   {"images": "prow-featured.jpg"},
   {"images": "604190.jpg"}
  ]
question from:https://stackoverflow.com/questions/65857982/how-to-convert-an-array-into-array-of-object

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...