Skip to content

JSON built-in plugin

Import

typescript
import json from '@biruni/built-in/json';
Alternative Import Syntax
typescript
import json from '@biruni/built-in/json/mod';

typescript
import { json } from '@biruni/built-in/mod';

typescript
import { json } from '@biruni/built-in';

Also it's available in biruni as battery-included


typescript
import { json } from 'biruni';

typescript
import { json } from 'biruni/built-in';

typescript
import { json } from 'biruni/json';

typescript
import json from 'biruni/json';

TIP

The json plugin also aliased to JsonPlugin named export

Plug and Use

typescript
.plug(json())

Or also can be use aliased name, by:

typescript
.plug(JsonPlugin())
Signature
typescript
const json = () => () => Context.Parser;
Information
Type🧩 Parser
Polyfill-inlcuded🟢 RUNTIMES BUILTED-IN
SSR Supportation🟢 RUNTIMES BUILTED-IN
Cross-Runtime🟢 RUNTIMES BUILTED-IN
Implemented Of🟢 JSON API

Released under the GPLv3-only License