Current collected state Current
Observed since 20 Oct, 18:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
1tree-json
Convert JSON objects to and from 1tree instances
Allows conversion between JSON objects and 1tree instances
const JsonTree = require( '1tree-json' )
const jsonData = require( './test-data.json' )
const tree = JsonTree( jsonData )
const numbers = tree.findAll( node => node.isNumber() )
numbers.forEach( numberNode => {
const value = node.value()
value.nodeValue *= 2
node.value( value )
})
const newData = tree.toJson()
console.log( JSON.stringify( newData, null, 2 ) )
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
1treeEnvironment{
"local_name": "1tree",
"alias": false,
"peer_metadata": null
} | ^0.4.9 | runtime |
mtypeEnvironment{
"local_name": "mtype",
"alias": false,
"peer_metadata": null
} | ^0.1.3 | runtime |
babel-preset-es2015Environment{
"local_name": "babel-preset-es2015",
"alias": false,
"peer_metadata": null
} | ^6.18.0 | development |
gulpEnvironment{
"local_name": "gulp",
"alias": false,
"peer_metadata": null
} | ^3.9.1 | development |
gulp-babelEnvironment{
"local_name": "gulp-babel",
"alias": false,
"peer_metadata": null
} | ^6.1.2 | development |
mochaEnvironment{
"local_name": "mocha",
"alias": false,
"peer_metadata": null
} | ^3.2.0 | development |
Source distribution
{
"shasum": "d4e30f5135e3deae2936219f56f796d40ca0b023",
"tarball": "https://registry.npmjs.org/1tree-json/-/1tree-json-0.1.10.tgz",
"integrity": "sha512-8vCzFRLUfH8HASWcxApb6r5bSlkDegKaZ5KYlj764JeacOHhy3Xfrg3kRnttA5gggkeTMzrDlSObHlmD9mvGfQ==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEYCIQClPhJZ23KpQknBUBXVy54W+B1UuEVTQTbD+uFhppAbyQIhAMe/Ia5mqzO6tiHC220h1WtoTw4iE369oTPoJ/z93Lwb"
}
]
}Observed since 20 Oct, 18:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:7438bcc3f96574c85c167ba60b1304e59d71d8ddea5d2c982518cf2e43fba7e9