https://github.com/flrngel/json-diet
skeletonize your json
https://github.com/flrngel/json-diet
diet json json-diet json-format json-schema simplify skeleton
Last synced: about 2 months ago
JSON representation
skeletonize your json
- Host: GitHub
- URL: https://github.com/flrngel/json-diet
- Owner: flrngel
- Created: 2014-06-07T11:45:56.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-03-31T00:45:02.000Z (almost 9 years ago)
- Last Synced: 2026-01-20T01:49:49.630Z (2 months ago)
- Topics: diet, json, json-diet, json-format, json-schema, simplify, skeleton
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json-diet

skeletonize your json object
returns last elements type
## use in node-js
```bash
npm install json-diet
```
usage
```js
var diet=require("json-diet");
```
## supports AMD
```js
require(["json-diet"],function(diet){
});
```
## wild web is support
```HTML
```
## USAGE
```js
diet({
"do": "doe a deer a female deer",
"re": "a drop of golden sun",
"me":{
"name": "I call my self"
},
"fa": "a long long way to run",
"so": {
"needle": {
"pulling": 0,
"thread": "~"
}
},
"la": "a note to follow sew",
"ti": {
"drink": {
"with": ["jam", "bread"]
}
}
}).result();
```
### USAGE RESULT
```
{
do: 'string',
re: 'string',
me: { name: 'string' },
fa: 'string',
so: { needle: { pulling: 'number', thread: 'string' } },
la: 'string',
ti: { drink: { with: 'array' } }
}
```
# LICENSE
MIT