Set up a JSON interface