Skip to content

editJson

editJson(source, path, value, options?): string

Defined in: packages/format-json/src/edit.ts:33

Sets value at path in a JSON string and returns the updated source.

See createJsonEdits for fidelity notes.

string

PropertyPath

unknown

JsonPrintOptions

string