Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

@salesforce/b2c-tooling-sdk / scaffold / mergeJson

Function: mergeJson()

mergeJson(existingJson, newContent, options): string

Defined in: packages/b2c-tooling-sdk/src/scaffold/merge.ts:111

Merge JSON content into an existing JSON string

Parameters

existingJson

string

The existing JSON string

newContent

JSON content to merge (string or object)

string | Record<string, unknown>

options

JsonMergeOptions = {}

Merge options

Returns

string

Updated JSON string

Released under the Apache-2.0 License.