Closed olorin37 closed 5 days ago
I think std.serialize
and std.deserialize
are what you're looking for. More specifically std.serialize
Json {hello = "wolrd"}or
std.deserialize 'Json "{hello = \"world\"}"`
Right, I forgot about the function 🤦♂️, sorry for the noise:-)
Stdlib should have functions for encoding object to JSON string and decoding it from string to the object. This is common practical need in configuration. (When as one field JSON string should be provided, regardles if outer format is also JSON or other, like YAML).