Struct to/from json

Is it possible to serialize a struct to json format and deserialize it back to struct?
1 Reply
mad alex 1997
mad alex 199713mo ago
Not as a builtin but you could make a method for the struct, and a trait that enforces the existence that method in a struct.

Did you find this page helpful?