2021.1

Table Of Contents
Using a JSON parameter or return value
Whenever a parameter or return value is defined as a JSONStringArray type, that JSON array
is itself a string. Since a JSON array internally defines double quotes as the delimiter for each
element, you must enclose the entire string in single quotes. Alternatively, you can escape the
double quotes inside the JSON Array.
For instance, the following calls to AddGroup() are correct:
repoObject.AddGroup("MyGroup",'["FirstKey", "SecondKey"]');
repoObject.AddGroup("MyGroup","[\"FirstKey\", \"SecondKey\"]");
But the following is incorrect:
repoObject.AddGroup("MyGroup","['FirstKey', 'SecondKey']");
Many methods require using the JSONStringArray type but JSON is not natively supported in
VB Script. Therefore, for those methods, only JavaScript sample code is provided. There are
many resources on the Web that propose ways of implementing JSON parsing in VB Script so
you can implement whichever you see fit. However, using JavaScript is highly recommended.
Repository management methods
Name Description
"CheckRepository" on page185 Verifies the integrity of the repository and recovers
unused space left by deleted keysets. Similar to
packing a database, the operation is non-destructive
but it does require exclusive access to the Repository.
You should therefore only perform this operation when
you know for sure no other process is accessing the
Data Repository.
"ClearRepository" on page186 Deletes all groups, keys and keysets from the
repository, returning it to a blank state. Use with
caution!
"ClearGroupData" on page185 Deletes all keysets inside GroupName while retaining
the existing key structure.
Page 177