I'm trying to do something fairly straightforward, but it doesn't seem to be possible so I'm probably missing something.
I just want to retrieve JSON data dynamically from a web service, and then produce a web page based on this data.
The closest I have gotten so far is:
1. I've created a REST Resource which retrieves the data
2. I've created a JSON Data Source, connected to the REST Resource
3. I've set up an Asset Listing Page, connected to the JSON Data Source
Now I can output fields from the JSON data, by inserting %ds__ keywords into the Asset Listing's Default Format template, and this works.
But I don't think this approach is going to let me do what I want. I need to be able to use conditional logic in the output template. eg. if a certain JSON field is empty, skip a whole chunk of output.
I understand that Paint Layouts can do this. But I haven't been able to figure out a way to format data source records using a Paint Layout.
Any advice would be much appreciated.