Re: [fpc-pascal] JSONStringToString question

2021-03-13 Thread Michael Van Canneyt via fpc-pascal
On Sat, 13 Mar 2021, Bart via fpc-pascal wrote: From : https://www.freepascal.org/docs-html/current/fcl/fpjson/jsonstringtostring.html Function result Pascal string with escaped characters replaced {$mode objfpc} {$h+} uses fpjson; var S1, S2: TJSONStringType; begin repeat write('S

[fpc-pascal] JSONStringToString question

2021-03-13 Thread Bart via fpc-pascal
From : https://www.freepascal.org/docs-html/current/fcl/fpjson/jsonstringtostring.html Function result Pascal string with escaped characters replaced {$mode objfpc} {$h+} uses fpjson; var S1, S2: TJSONStringType; begin repeat write('S: ');readln(S2); S1 := JSONStringToString(S2)