
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
simple-json-order
Advanced tools
A lightweight JavaScript utility to preserve the insertion order of top-level keys in JSON objects — ideal for config files, logs, or any use case where key order matters.
This is a lightweight JavaScript utility that allows you to preserve the insertion order of top-level keys when working with JSON.
JavaScript objects do not guarantee key order when the keys are numeric or mixed. This can lead to problems in cases where key order matters — such as configuration files, logs, diffs, or structured data that must be rendered predictably.
import { JSONOrder } from "simple-json-order";
const jsonOrdered = new JSONOrder();
//This adds values
jsonOrdered.add("a", "value a");
jsonOrdered.add("5", "value 5");
jsonOrdered.add("20", "value 10");
//You can delete values using delete
//The values keys will be stored as string always
jsonOrdered.add(5);
// To convert to string run stringify()
jsonOrdered.stringify();
// if you want to load a sorted json use parse()
jsonOrdered.parse('{"20": "value 20", "5": "value 5", "100": "value 100"}');
FAQs
A lightweight JavaScript utility to preserve the insertion order of top-level keys in JSON objects — ideal for config files, logs, or any use case where key order matters.
The npm package simple-json-order receives a total of 1 weekly downloads. As such, simple-json-order popularity was classified as not popular.
We found that simple-json-order demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.