https://github.com/themost-framework/json
JSON parser extensions
https://github.com/themost-framework/json
Last synced: 4 months ago
JSON representation
JSON parser extensions
- Host: GitHub
- URL: https://github.com/themost-framework/json
- Owner: themost-framework
- License: bsd-3-clause
- Created: 2022-12-13T07:06:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T12:00:12.000Z (over 2 years ago)
- Last Synced: 2024-04-26T09:41:54.262Z (about 1 year ago)
- Language: JavaScript
- Size: 60.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/@themost%2Fjson)

[](https://github.com/themost-framework/json/blob/master/LICENSE)


[](https://www.npmjs.com/package/@themost%2Fjson)

# @themost/json
JSON parser extensions for formatting and parsing date values## Usage
npm i @themost/json
Extend `JSON.stringify` and `JSON.parse` to use and parse date values with timezone by importing `@themost/json/register` module:
import {@themost/json/register}
The default result of the native `JSON.stringify()` function:
{
"message": "Hello World",
"createdAt": "2022-12-13T09:27:13.531Z"
}will be replaced by the following:
{
"message": "Hello World",
"createdAt": "2022-12-13T10:27:13.531+01:00"
}