Figured out loops and JSON is funny

So I figured out how to loop and make a promise. It is showing the data I need. However, the JSON is formatted in a funny way.

0:
	"assets":
		0:
			"id": 12345,
1:
	"assets":
		0:
			"id": 54323,
2:
	"assets":
		0:
			"id": 43234,

How do I get this to some sort of format I can work with?

What type of format do you want to work with?

Sometimes the hardest part of searching is asking the right question.
I found the answer at the bottom of this post: Run query for every row of table and return values for each in array? - #6 by nickaus

I had to create a transformer.

1 Like