json_combineProperties Function
Syntax
dim result as c = json_combineProperties(C json1, C json2)
Arguments
- json1Character
A JSON string.
- json2Character
A JSON string.
Returns
- resultCharacter
Returns the two JSON strings merged together as a single JSON string.
Description
Combines the properties in two JSON strings into a single JSON string.
Discussion
The json_combineProperties() function combines two JSON strings, merging properties together into one JSON string.
Interactive Window Example
dim json1 as c json1 = <<%str% {"first name":"fred"} %str% dim json2 as c json2 = <<%str% {"last name": "smith","array%":["a","b"]} %str% dim json as c json = json_combineProperties(json1,json2) ? json_reformat(json,.t.) = { "first name": "fred", "last name": "smith", "array%": [ "a", "b" ] }
See Also