
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
@jsonurl/jsonurl
Advanced tools
JSON->URL defines a text format for the JSON data model suitable for use within a URL/URI (as described by RFC3986).
RFC8259 describes the JSON data model and interchange format, which is widely used in application-level protocols including RESTful APIs. It is common for applications to request resources via the HTTP POST method, with JSON entities. However, POST is suboptimal for requests which do not modify a resource's state. JSON→URL defines a text format for the JSON data model suitable for use within a URL/URI.
JSON→URL is available as a commonjs module (suitable for use in Node), ES6 module, or a script that may be used directly in a browser.
npm install @jsonurl/jsonurl --save
const JsonURL = require("@jsonurl/jsonurl");
import JsonURL from "@jsonurl/jsonurl";
<script
src="https://cdn.jsdelivr.net/npm/@jsonurl/jsonurl@1.1.0"
integrity="sha384-JCtJokkM2P1NvInO8p82t17dv0kqMRWhrgLU+H8KIHlev5bM9hot93290mWx50u9"
crossorigin="anonymous"></script>
Once included, the API is the same for all three.
let value = JsonURL.parse( "(Hello:World!)" );
let string = JsonURL.stringify( value );
There are options available, but that's all you need to get started.
JSON→URL has no runtime dependencies.
The parser is designed to parse untrusted input. It supports limits on the number of parsed values and depth of nested arrays or objects. When the limit is exceeded an Error is thrown, and sane limit values are set by default.
v1.1.1
FAQs
JSON->URL defines a text format for the JSON data model suitable for use within a URL/URI (as described by RFC3986).
The npm package @jsonurl/jsonurl receives a total of 5,064 weekly downloads. As such, @jsonurl/jsonurl popularity was classified as popular.
We found that @jsonurl/jsonurl 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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
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.