# json-post **Repository Path**: mirrors_WebReflection/json-post ## Basic Information - **Project Name**: json-post - **Description**: How to post JSON in NodeJS - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2025-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # json-post How to post JSON in NodeJS. You know those simplest things ever not properly documented online? That! ```js const jsonPOST = require('json-post'); // or import jsonPOST from 'json-post' jsonPOST( 'https://whatever:5000/seriously', {hello: 'world'} // optionally extra headers {...} ).then( console.info, console.error ); ``` That's literally it. #### ... and what about browsers ? You can use this [MDN fetch example](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Supplying_request_options) to post JSON data.