maddog0
3 years agoNew Contributor II
Formatting variable JSON
I am working on an integration between two endpoints that deal with values in very different ways and I’m struggling to convert between them. The source I’m getting data from sends out data with mu...
- 3 years ago
Thanks for the help! That didn’t get me all the way there, but after looking at it I realized I could use another map to get the values I needed. In the end I did this
$Key.split(',').map(x=>{"id":x}).map(x=>{"key":x})
which got me the exact output I was looking for