Produce a string with casl dictionary suitable for inclusion in casl code
Parameters:
Name | Type | Description |
---|---|---|
obj |
object
|
the JS object of interest |
name |
string
|
the name to assign to the dictionary |
returns the string containing the casl dictionary
string
Example
obj = {x: 1, b:2, c: ['a','b']};
name ='_appEnv_';
result is a string _appEnv_ = {x=2, b=3, c={"a", "b"}}