media-io / yaserde

Yet Another Serializer/Deserializer
MIT License
174 stars 58 forks source link

Documentation of YaDeserialize YaSerialize traits #183

Open MarcAntoine-Arnaud opened 3 months ago

MarcAntoine-Arnaud commented 3 months ago

Reported by @akavel on issue https://github.com/media-io/yaserde/issues/181

A better complete documentation on trait may useful !

antis81 commented 2 months ago

In this context I am also searching for an example for a format conversion from XML to some other declarative format (similar to but not json)…

<item class="SomeObject" />

Expected output

export component SomeObject {
    // children go here
}

EDIT: I made good progress with serializing to the custom format so this is no longer relevant for me. Maybe I can provide some of the code as examples.