Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
json-dot-notation-converter
Advanced tools
Convert JSON / OBJECT by instructions. Instructions are string dot notation directives.
{
items: [{
a: 'London',
b: '1500',
nested: {
a: 'John doe',
b: '28',
c: 'UK',
}
}]
}
[
['items[].a', 'items[].city'],
['items[].b', 'items[].price'],
['items[].nested', 'items[].user']
],
[
['items[].user.a', 'items[].user.name'],
['items[].user.b', 'items[].user.age'],
['items[].user.c', 'items[].country'],
]
]
{
"items": [{
"city": "London",
"price": "1500",
"country": "UK",
"user": {
"name": "John doe",
"age": "28"
}
}]
}
name
into surname
input
: { name: 'A' }
instruction
: ['data.name', 'data.surname']
output
: { surname: 'A' }
input | instruction | output |
---|---|---|
{ name: 'A' } | ['name', 'surname'] | { surname: 'A' } |
name
into surname
Copy is a special attribute that can be added to instruction.
input | instruction | output |
---|---|---|
{ name: 'A' } | ['name', 'surname', ['copy'] ] | { name: 'A', surname: 'A' } |
price
from object to parentinput | instruction | output |
---|---|---|
{ name: 'A', car: { type: 'Mazda', price: 100 }} | ['car.price', 'price'] | { name: 'A', price: 100, car: { type: 'Mazda' }} |
price
from object to not existing objectinput | instruction | output |
---|---|---|
{ name: 'A', car: { type: 'Mazda', price: 100 }} | ['car.price', 'price.mazda'] | { name: 'A', car: { type: 'Mazda' }, mazda: { price: 100 }} |
price
from array objectinput | instruction | output |
---|---|---|
{ name: 'A', cars: [{ type: 'Mazda', price: 100 }]} | ['cars[].price', 'prices[].price'] | { name: 'A', cars: [{ type: 'Mazda' }], prices: [{ price: 100 }]} |
FAQs
Json dot notation converter
We found that json-dot-notation-converter 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.