
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@robinpath/json
Advanced tools
JSON manipulation: parse, stringify, deep merge, flatten, unflatten, diff, query by path, pick, and omit
JSON manipulation: parse, stringify, deep merge, flatten, unflatten, diff, query by path, pick, and omit
The json module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
robinpath add @robinpath/json
No credentials needed — start using it right away:
json.stringify $obj
| Function | Description |
|---|---|
json.parse | Parse a JSON string into an object |
json.stringify | Convert a value to a JSON string |
json.get | Get a nested value by dot-separated path |
json.set | Set a nested value by dot-separated path, returning a new object |
json.merge | Deep merge two or more objects |
json.flatten | Flatten a nested object to dot-notation keys |
json.unflatten | Unflatten dot-notation keys back to a nested object |
json.diff | Compare two objects and return differences |
json.clone | Deep clone an object |
json.isValid | Check if a string is valid JSON |
json.keys | Get all keys including nested paths with dot notation |
json.pick | Pick specific keys from an object |
json.omit | Omit specific keys from an object |
json.stringify $obj
json.get $obj "user.name"
json.set $obj "user.name" "Bob"
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/json";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
json.stringify $obj
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
MIT
FAQs
JSON manipulation: parse, stringify, deep merge, flatten, unflatten, diff, query by path, pick, and omit
The npm package @robinpath/json receives a total of 4 weekly downloads. As such, @robinpath/json popularity was classified as not popular.
We found that @robinpath/json demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.