postJSON
A helper in `api.js` that sends a body as JSON to a URL and reads the JSON answer, throwing `HttpError` on a bad status. Kettle & Crane uses it to place an order.
A helper in `api.js` that sends a body as JSON to a URL and reads the JSON answer, throwing `HttpError` on a bad status. Kettle & Crane uses it to place an order.