Roarray in Delphi tjson

(Alessandro) #1

Hi!

It possible to convert roarray in tjson string?

I tried
Tjson.objecttojsonstring(roarray);
But It doesn t convert items.

How Can i do?

(EvgenyK) #2

Hi,

you can do it like:

  • write your array to TROJSONMessage with message.WriteArray method
  • find your array inside message.RootObject
  • write detected object to stream with SaveToStream method

stream will contain json string