Skip to main content
Home

A JSON parser that supports comments, self-references, external file imports, and template strings. Built for Deno with TypeScript support.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
76%
Published
4 days ago (2.0.0)
interface ParseOptions

Options for parsing JSON+ strings

Properties

optional
basePath: string

Base path for resolving external file references. If not provided, defaults to the current working directory. Relative paths in external file references are resolved relative to this base path.

optional
maxDepth: number

Maximum depth for recursive reference resolution. Defaults to 100 to prevent stack overflow from infinite recursion.

Internal use: Tracks external references to prevent circular dependencies

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@serkan/jsonplus

Import symbol

import { type ParseOptions } from "@serkan/jsonplus";
or

Import directly with a jsr specifier

import { type ParseOptions } from "jsr:@serkan/jsonplus";

Add Package

pnpm i jsr:@serkan/jsonplus
or (using pnpm 10.8 or older)
pnpm dlx jsr add @serkan/jsonplus

Import symbol

import { type ParseOptions } from "@serkan/jsonplus";

Add Package

yarn add jsr:@serkan/jsonplus
or (using Yarn 4.8 or older)
yarn dlx jsr add @serkan/jsonplus

Import symbol

import { type ParseOptions } from "@serkan/jsonplus";

Add Package

vlt install jsr:@serkan/jsonplus

Import symbol

import { type ParseOptions } from "@serkan/jsonplus";

Add Package

npx jsr add @serkan/jsonplus

Import symbol

import { type ParseOptions } from "@serkan/jsonplus";

Add Package

bunx jsr add @serkan/jsonplus

Import symbol

import { type ParseOptions } from "@serkan/jsonplus";