Jump to: navigation, search

JSON objects and JavaScript keywords

If the JSON Objects used within the VXML document contain JavaScript reserved keywords (for example: double), NGI will throw an error.semantic exception.

For example, if the following occurs:

{'double':{'content':'40.015','XMLNS':'HTTP://WWW.WEBSERVICEX.NET/'}}

then accessing double.content in the above JSON Object will result in the following error:

exec_error SyntaxError: missing name after . operator JSONType.double.toSource()

event error.semantic:1

Therefore, responses from the requested URLs in Web Service and Web Request blocks should not contain any JavaScript reserved keywords.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on 26 October 2016, at 11:24.