cross-platform support of TStrings JSON serialization