AI Zone Admin Forum Add your forum

CX Company, chatbot market leader in the Netherlands since 2005, will speak on the Amsterdam Chatbots Meetup on Wednesday, Oct 18!

as part of outputmacro when variables are expanded followed by } | ChatScript | Development | AI Zone - AI Forum for chat bot, virtual agent, virtual assistant, virtual human, chatbot & chatterbot developers" description="CS 7.1 removes } as part of outputmacro when variables are expanded followed by } | ChatScript | Development | AI Zone - Artificial Intellgence AI Forum for chat bot, virtual agent, virtual assistant, conversational agent, chatbot, avatar & chatterbot development. Quality AI forums." keywords="AI forum, artificial intelligence forum, virtual human forum, AIML, chatbot, chat bot, chatterbot, virtual agent, virtual assistant, virtual human, avatar, perl, lisp, php, phython" canonical="https://www.chatbots.org/ai_zone/viewthread/2843/" }
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 ››