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

jsonobject to string
 
 

how change json object to string?

if(^jsoncreate(object)) {jsonobject create!!! $$jsonobject=^jsoncreate(object)}
else {jsonobject create ERROR!!!}

if(^jsonobjectinsert($$jsonobject “name” “AA”)) {object insert complite!}
else {object insert ERROR!!!!}

if(^jsonobjectinsert($$jsonobject “phone” “000”)) {object insert complite!}
else {object insert ERROR!!!!}

if(^jsonobjectinsert($$jsonobject “addr” “BB”)) {object insert complite!}
else {object insert ERROR!!!!}

i was create json object this code.
json object name is $$jsonobject!!

i want to jsonobject to string… but i don’t know..
i was using ^jsonprint() but is not defined.

help me….

 

 
  [ # 1 ]

^jsonwrite

 

 
  [ # 2 ]

thank you!!!!!!!!!!
chatscript very interesting and difficult but keep going to study hard!
thank you Bruce Wilcox!

 

 
  [ # 3 ]
Bruce Wilcox - Oct 14, 2016:

^jsonwrite

chatscript very interesting and difficult but keep going to study hard!
thank you Bruce Wilcox!

one more question sorry.
json array to string is using ^jsonwrite?

 

 
  login or register to react