Tom Philippi · Mar 18, 2017

Generating JSON message with attributes containing odd characters

I have a Enslib.REST.operation which I want to use to send a JSON message. In Ensemble I am using the request message to the Business operation as an input for ObjectToJsonStream function so I can send it out (this is the way to go right?). However, I am now running into the fact that one of the attributes (template_name) contains an underscore and that I am not allowed to use the underscore to define the property in my ensemble RequestMessage:

Property template_name As %String;

What's the best way to resolve this?

0 290
Discussion (1)2
Log in or sign up to continue

Use double quotes:

Property "template_name" As %String;