Skip to content

Glossary: Vue.js

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.

Where the book teaches it

Related terms

fetchHttpErrorJSON (JavaScript Object Notation)