AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

CS 7.1 removes } as part of outputmacro when variables are expanded followed by }
 
 

Hi Bruce

Some of our CS top files are returning “json” directly as text.

For example consider this as the output text of the outputmacro:

outputmacro:
  $$timestamp = ^join(\” %fulltime \” )
  $$message = ^jon (\” hello \” )
  {"timestamp": $$timestamp,"message": $$message}

In CS 6.87 we get the output as {"timestamp": "1234567890","message": "hello"}
In CS 7.1 we get the output as {"timestamp": "1234567890","message": "hello"

The closing brace after the expansion of any variable is missing. If there are } after other text it works, its missing only if a variable is substituted before the }.  (Note: If there are 2 }} for e.g., then both are missing)

Do we need to change the top files or does this require a fix in CS?

Thanks
Srini

 

 
  [ # 1 ]

CS fix to bug i introduced. Will release this weekend.

 

 
  [ # 2 ]

Bruce, FYI

The following works:

^’{"timestamp": $$timestamp,"message": $$message}’

 

 
  login or register to react
‹‹ Email id as username      POS article of noun ››