Closed pillig closed 9 years ago
You need to use the special json
filter like this
{ foo | json }
in order to display the data in a nice format.
If you only do
{ foo }
you may get [object Object]
Please confirm if this helps.
Thank you, that ended up working.
I decided to begin my question for Friday today and ran into an error where whatever I returned ended up being [object Object]. I tried several different functions but kept getting the same thing. Then I decided to just return data itself and got this.
Any idea why this is happening? The warmup from class still grabs the data fine, so I'm not convinced it has anything to do with the .json.
Thanks