Skip to content

Latest commit

 

History

History
94 lines (47 loc) · 1.34 KB

File metadata and controls

94 lines (47 loc) · 1.34 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

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

JsonFile.updateString() method

Serializes the specified JSON object to a string buffer.

Signature:

static updateString(previousJson: string, newJsonObject: JsonObject, options?: IJsonFileStringifyOptions): string;

Parameters

Parameter

Type

Description

previousJson

string

the previous JSON string, which will be updated

newJsonObject

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