How to apply JSON (content representations)?

Continued here, so closing this: How to use AJAX in kirby3