Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tetracalibers/json-microscope
https://github.com/tetracalibers/json-microscope
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tetracalibers/json-microscope
- Owner: tetracalibers
- Created: 2022-09-22T15:27:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T02:57:04.000Z (over 2 years ago)
- Last Synced: 2024-11-07T21:20:13.917Z (2 months ago)
- Language: TypeScript
- Size: 185 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json-microscope
Collection of JSON conversion tools to help debug object structure
## Install
```
npm i --save-dev json-microscope
```or
```
yarn add -D json-microscope
```## API References
### toJson(obj: Object) => string
Converts an object into an easy-to-read formatted JSON string.
### logJson(obj: Object) => void
The object is formatted for easy viewing and displayed in the terminal.
### fromJson(obj: Object) => any
Converts imported objects from .json files to JS objects.