Simple client-side JSON REST helper.