Skip to content

Signatures

updateJson(tree: Tree, path: string, updater: Object, options: any): void

Updates a JSON value to the file system tree

Parameters

  • tree: Tree - File system tree
  • path: string - Path of JSON file in the Tree
  • updater: Object - Function that maps the current value of a JSON document to a new value to be written to the document
  • options: any - Optional JSON Parse and Serialize Options