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 permanent empty array
 
 

Hi, I realized the following bug:

If I create a new permanent json array

$jsonarray = ^jsoncreate(permanent array) 

and try to access it during the next volley
e.g.

^jsonwrite($jsonarray

the call fails.

If I add a dummy element directly after creating it works fine.

 

 

 
  [ # 1 ]

Yes. CS does not represent an empty json top level array or object as a consequence of how it is coded. However, I have changed jsonwrite to accept that and do the right thing in next release.

 

 
  [ # 2 ]

The problem is not only for ^jsonwrite(), but also every other json function.
More important in my situation would be ^jsonarrayinsert

 

 
  login or register to react