Matrix Version: 5.3.4.2
Hi all,
I’m looking for help/suggestions/ideas for how to create a sort of API endpoint that returns all event information of a particular site.
It needs to be in a pretty strict JSON format (the data is going into another system for processing) so an RSS feed is out.
I thought an Asset Listing would be ideal, and I almost got there, but I ran into an issue with adding commas between the JSON objects in the event array. I had tried to use a keyword like this: %asset_position^replace_keywords^lt:{asset_count}:,:% but the asset count keyword is only available on the page contents, not the type format. Search pages also suffer from this limitation.
I also tried using a replace keyword modifier on the %asset_listing% similar to this %asset_listing^replace_keywords^replace:string replacment:{asset_count}% but had no luck.
SSJS could be possible, but I’m not at the correct Matrix version to leverage that, unfortunately.
Any ideas?
Thanks