You are not logged in.
Pages: 1
Hello ab,
I am study the new mormot2 json IDocDict,IDocList it is very usefull to handle json structure by interfaces.
I see DocDict('{}') and DocList('[]') but how load a json string that do not know if is object or array.
Can I build a DocAny that load object or array json string?
Thanks
Offline
IDocDict is a dictionary/object.
IDocList is a list/array.
If you want to store anything use a variant.
And behind the scene both IDocDict/IDocList store their data within a custom variant type - a TDocVariant.
Offline
Pages: 1