Open Chriscbr opened 1 month ago
Serializing data to and from JSON for simulator resources can be cumbersome, we have some examples here:
https://github.com/winglang/wing/blob/58493d35bfc0267996df7609738f7348eaa6c50f/examples/tests/sdk_tests/resource/call.test.w#L111-L153
It would be nice to have some more uniform API to convert a type to/from Json. Separately it could also be nice to have some way to auto-generate these methods.
Json
Serializing data to and from JSON for simulator resources can be cumbersome, we have some examples here:
https://github.com/winglang/wing/blob/58493d35bfc0267996df7609738f7348eaa6c50f/examples/tests/sdk_tests/resource/call.test.w#L111-L153
It would be nice to have some more uniform API to convert a type to/from
Json
. Separately it could also be nice to have some way to auto-generate these methods.