Forum Discussion
RokuKC
10 years agoRoku Employee
"cpjamloki" wrote:first = {"firstName":null,"lastName":null,"emailAddress":null,"socialSecurityNumber":null,"telephoneNumber":null,"creditCheckConsent":false},"dateOfBirth":null}}
firststr = FormatJson(first,0)
print"firststr =" firststr
it's giving syntax error here .
The BrightScript associative array literal format isn't compatible with an arbitrary JSON value.
For one thing, the assignment to first refers to null which is not an intrinsic BrightScript keyword.
You could do:
null = invalidprior to assigning to first, to address that.
However, in the current firmware (6.2), BrightScript also doesn't support quoting the key names, so it still won't work.
E.g. you can do:
first = {a:"b"}
but you can't do:
first = {"a":"b"}