
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
json-modifier
Advanced tools
Transform any JSON easily, provide a schema with new keys and type format to output a new format object
npm install json-modifier
var JsonModifier = require('json-modifier');
var exampleObject = {
"Name": "Filipe M. Silva",
"Age": "28",
"Address": {
"house-Number": "52",
"Street": "Lemon",
"State": "SP"
}
};
var addressSchema = {
"house-Number": "houseNumber:number",
"Street": "street:string",
"State": "state:string"
};
var schema = {
"Name": "name:string",
"Age": "omit",
"Residencial-Address": "omit",
"Address": addressSchema
}
var translatedObject = JsonModifier(schema, exampleObject);
console.log(translatedObject);
{
"name": "Filipe M. Silva",
"Address": {
"houseNumber": 52,
"street": "Lemon",
"state": "SP"
}
}
Schema are a json which are formated by key/rule some examples:
key
: newKey:type
key: Original key for modification;
newKey: new key after modification;
type: data type supported are string, number and boolean;
string: null
and undefined
values are modified to empty strings
number: undefined
and non-numeric values will be transformed in NaN, and null
values will be convert to 0
boolean: same behavior as transform any data in javascript
default
values support in schemaFAQs
translate json to a specific format with a simple schema
The npm package json-modifier receives a total of 3 weekly downloads. As such, json-modifier popularity was classified as not popular.
We found that json-modifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.