Hey there,
I have a JSON endpoint with a meta column - this meta column is the output of a JSONB column in postgres. When querying the endpoint the output looks like this:
{
"link_event":{
"id":65,
"link_id":1,
"key":"click",
"meta":{
"get":null,
"post":{
"post":"posty"
},
"header":{
"header":"heady"
},
"timestamp":"2015-02-27T22:05:53.923+00:00"
},
"created_at":"2015-02-27T22:05:53.923Z",
"updated_at":"2015-02-27T22:28:26.161Z"
}
}
When I use {{meta}}
inside my template I get [object object]
as a string. Would it be possible to create an attribute that can hold the contents of this column as a json hash instead of serialising it into a string? Any pointers on how I might build something like that would be much appreciated
JH