points by CamouflagedKiwi 3 days ago | 0 comments
I generally like `encoding/json/v2` and I'm glad they did it.
I wish they'd left `MarshalIndent` in there though. The equivalent code is super complicated and non-obvious, so it's a pain to migrate, and it's a pain when you're banging out some quick code and want to dump some readable JSON. I suppose these days the LLMs can write the complicated version for us, of course.
[–] arccy 3 days ago
json.Marshal(v, jsontext.WithIndent(" "))
?[–] lifeisloving 3 days ago
I love paying 10 cents to some billionaire to serialize some json. Screw using my brain!!! Ill rent me some competency
Not an insult to you, its just how I feel things are going, myself inculded at times.
Edit: why do yall downvote this lol, you know its true.
[–] athorax 3 days ago
[–] irq-1 3 days ago