buildPath

Builds the necessary path according to the given path in order to store the given item.

Where a DataObject/DataList already exists on the given path, the incoming items will be merged in. Where the DataObject/DataList does not exist yet in this DataObject a new one will be created. Where a different type was specified on the path to what is currently in this DataObject, it will be overwritten.

Return

a new DataObject with the item stored at the given path

Parameters

path

the JsonObjectPath used to describe where to store item

item

the DataItem to add