Roarray in Delphi tjson

Hi!

It possible to convert roarray in tjson string?

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

How Can i do?

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