Skip to content

Latest commit

 

History

History
78 lines (40 loc) · 1.17 KB

File metadata and controls

78 lines (40 loc) · 1.17 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > JsonFile > stringify

JsonFile.stringify() method

Serializes the specified JSON object to a string buffer.

Signature:

static stringify(jsonObject: JsonObject, options?: IJsonFileStringifyOptions): string;

Parameters

Parameter

Type

Description

jsonObject

JsonObject

the object to be serialized

options

IJsonFileStringifyOptions

(Optional) other settings that control serialization

Returns:

string

a JSON string, with newlines, and indented with two spaces