Skip to content

createJsonEdits

createJsonEdits(source, path, value, options?): TextEdit[]

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

Returns the minimal TextEdits needed to set value at path.

JSON has no comment syntax, so this always returns a single full-replace edit (parse → mutate → reprint).

string

PropertyPath

unknown

JsonPrintOptions

TextEdit[]