I’m creating a json file with reference to the ‘content representations’ guide.
But I don’t know how to apply this.
I have a template /site/templates/bookshops.php
and I created site/templates/bookshops.json.php
Then when I connect to bookshops.json, I can connect.
But how can I represent this like bookshops.php?
Currently these two files look different.
https://seoulbookshops.kr/bookshops
https://seoulbookshops.kr/bookshops.json
The reason I want to make json is because I want to use ajax later.
The story related to this is in the question I posted before.
https://forum.getkirby.com/t/how-to-use-ajax-in-kirby3/15300
And I read this guide.
https://getkirby.com/docs/guide/templates/content-representations