Generating JSON message with attributes containing odd characters

REST API, Ensemble

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?

  • + 1
  • 0
  • 169
  • 0
  • 1


Use double quotes:

Property "template_name" As %String;