[Pharo-dev] STON toJsonString produces broken JSON

Peter Uhnak i.uhnak at gmail.com
Sun Jun 5 07:10:18 EDT 2016


Hi,

shouldn't this throw an error instead of producing a broken JSON?

STON toJsonString: ({'a' -> 'b'})
["a":"b"]

(also STON toJsonString: ('a' -> 'b') => "a":"b")

Clearly I forgot to cast it to dictionary, but shouldn't it throw up?

Thanks,
Peter




More information about the Pharo-dev mailing list