bigdatahci2015 / forum

0 stars 4 forks source link

Strange return from data on analysis portion of FCQ #16

Closed pillig closed 9 years ago

pillig commented 9 years ago

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.

screenshot from 2015-09-16 21 39 09

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

doubleshow commented 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.

pillig commented 9 years ago

Thank you, that ended up working.