@types/json-parse-better-errors

  • Version 1.0.3
  • Published
  • 3.96 kB
  • No dependencies
  • MIT license

Install

npm i @types/json-parse-better-errors
yarn add @types/json-parse-better-errors
pnpm add @types/json-parse-better-errors

Overview

TypeScript definitions for json-parse-better-errors

Index

Functions

function json_parse_better_errors

json_parse_better_errors: (
txt: string,
reviver?: (key: string, value: any) => any,
context?: number
) => any;
  • Converts a JavaScript Object Notation (JSON) string into an object.

    Parameter text

    A valid JSON string.

    Parameter reviver

    A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.

    Parameter context

    The number of characters to display in each direction around the position of an error.

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (0)

No dev dependencies.

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/json-parse-better-errors.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/json-parse-better-errors)
  • HTML
    <a href="https://www.jsdocs.io/package/@types/json-parse-better-errors"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>