Wrap every api that need json
Basic templating