Json submit

We'll probably use the keys `error` and `success`