Allow sending JSON-encoded data to API