https://github.com/calbertts/simplejsonmapper
Simple JSON Graph
https://github.com/calbertts/simplejsonmapper
Last synced: 10 months ago
JSON representation
Simple JSON Graph
- Host: GitHub
- URL: https://github.com/calbertts/simplejsonmapper
- Owner: calbertts
- Created: 2015-05-22T21:05:54.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-25T22:57:24.000Z (about 11 years ago)
- Last Synced: 2025-07-30T15:28:56.483Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.73 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple JSON Mapper
How to run:
```bash
$ npm install
```
```bash
$ npm run start
```
***
Example:
If you copy this on Structure:
```json
{
"name": "Root",
"children": [
{
"name": "Node 1"
},
{
"name": "Node 2",
"children": [
{
"name": "SubNode 2"
}
]
}
]
}
```
You will get this:
```json
{
"Node 1": "String",
"Node 2": {
"SubNode 2": "String"
}
}
```
**Arrays aren't supported**