April 10, 2026
10:53 p.m.
In Json, arbitrary anounts of white space can appear between tokens, including line feed. If this is âpainfulâ for your tests, then itâs unlikely to be the only thing that is. If you are comparing JSON irms *as* JSON, then linefeeds wonât matter . If you are comparing JSON items as strings, there are so many ways that different strrings can represent the same value -infinitely many, in fact - that linefeeds are the least of your worries. What are you actually doing in your tests? On Fri, 10 Apr 2026 at 10:55â¯PM, stephane ducasse via Pharo-users < pharo-users@lists.pharo.org> wrote:
Hi
I would like to know if there is a way to generate JSON without lf?
toJsonStringPretty: is generating lf and this is painful for tests.
S.