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..

JSON data with leading $ character causes error
 
 

I’m trying to access a web service using ^jsonopen. As part of the service, I need to send a key hash, which begins with a $ character.

Chatscript converts the key hash to lowercase. After some testing, I’ve found that any string with a leading $ character will be converted to lowercase. Is there any way I can make this a raw or literal string? I’ve tried escaping the $ character with a backslash, but end up with two leading \ characters being sent.

The relevant code in Chatscript is:

$_var = ^jsoncreate(transient object)
 
$_var.name testName
 $_var
._sessionId "testSessionId"
 
$_var._key "$2y$10$c1L/A4aoPxG8ZdG8xyz" 
 

 
  [ # 1 ]

Should not be a problem with next CS release, due shortly.

 

 
  login or register to react