Elektrine lite

← Feed

@marcedwards@mastodon.social

Post #1772315

2025-12-02 01:40 UTC

@eelco Sure. By “rounding errors” I meant float to string conversion for the JSON, or anything related. It’s clear the JSON wasn’t human authored.

Replies (1)

  • @eelco@mstdn.io 2025-12-02 09:00

    @marcedwards Try this in the terminal: > echo '{"test":0.45}' > test.plist > plutil -convert xml1 test.plist > cat test.plist As you can see, the way floats are stored in the XML serialization has nothing to do with how artisanal the original JSON was. Bonus points: edit the XML version back to 0.45 and run the convert command again.

    Open ##1772316