News for hackers. Stuff that matters.
Re:JSON for Modern C++ by onei on Sunday September 29, 2019 @06:32AM (#21106257)
If you want to convert it to an object, have you tried using dataclasses? I haven't used them much, but last time I tried them they felt much easier than trying to use the native dict/list/str/int/etc. that gets returned by default.
Re:JSON for Modern C++ by falsedan on Monday September 30, 2019 @09:16AM (#21115004)
Yeah. It's the custom serialisation & schema/ctor arg validation that makes it clunky.