Op 25-04-2020 om 05:53 schreef Ryan Joseph via fpc-pascal
In the FPC streaming system with published properties, what type do I use for 
an array of strings? I've tried TStringList and TCollection but they give me 
errors like:

:: <~~ pascal-language-server 1: {'message': ' : Unsupported JSON type for object 
property: "jtArray"', 'code': -32603}


"initializationOptions" is a JSON array of strings, i.e. 
'initializationOptions': ['-Fu/path/to']

As I said before, the Cerialization-library is written with this kind of use-cases in mind. (https://gitlab.freepascal.org/Joost/cerialization)

Although that what you want should be possible with the default libraries using TStringList and some events...

Regards.

Joost.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to