G
GregHiggins
Guest
I have a path variable fileSource which points to a valid Json file ( verified by JsonLint The JSON Validator, seriously, $2 / month is too much for you? ). cpStream is utf-8, cpInternal is utf-8 (verified). /* This fails */ define variable myPArser as ObjectModelParser no-undo. define variable jc as JsonCOnstruct no-undo. assign myParser = new ObjectModelParser ( ) jc = myParser
arse ( fileSource ) . /* with message Json Parser Error at offset 1: lexical error: invalid char in json text. (11608) */ /* This succeeds */ define variable lc as longchar no-undo. copy-lob from file fileSource to lc. assign myParser = new ObjectModelParser ( ) jc = myParser
arse ( lc ) . Isn't it about time ABL stopped doing stupid stuff? It's been 10 fn years since we started processing json.
Continue reading...
Continue reading...