Use json to submit forms, and parse http responses as json