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).
Parameters
Section titled “Parameters”source
Section titled “source”string
PropertyPath
unknown
options?
Section titled “options?”Returns
Section titled “Returns”TextEdit[]