Check that get/post of JSON works