#`std.json` Parsing String maps

1 messages · Page 1 of 1 (latest)

woven hazel
#

json.parse will only parse that with struct { .@"function-bind": []const u8, etc.. }

#

std.json.parse has no way to parse something with runtime-known field names; although can use std.json.Parser for this, which gives you a std.json.Value you must traverse manually

woven hazel
#

there should be tests in json.zig

wicked harness
wispy jolt
#

I see someone's in bun land for this lol

#

But regarding the Bun stuff you want to stringify instead

#

Jarred with handling JSON string literals instead of stringifying structs 💀

#

#903845031230713857 message

#

Oh that's sick

#

Are you trying to work/ contribute for them? Or is this an unrelated side interest

#

Damn beat me to it