When I convert JSON in the module serde (Mops • Motoko Package Manager), the JSON data key contains the type keyword, so it cannot be passed when defining the data type model.
How to deal with this situation ni
Example JSON string
{
type : "TriggerSmartContract",
other : "other"
}
Motoko does not support it
type RawData = {
type : Text;
other : Text
};