Serialization library candidate review request
Martyn
martyn.developer at googlemail.com
Wed Aug 30 12:15:44 UTC 2023
https://code.dlang.org/packages/asdf
I have used this package in a past project and works well for
both serialize and deserialize. Makes use of UDA, etc.
Just throwing it out there in case you are not aware -- there
could be some niceties in there to help with the development of
mud. asdf seems to be focused purely on json, though.
To have mud be supported for many formats would be great! Xml,
Bson, etc.
Looking at the code, I guess thats the direction you are heading.
Nice!
On Monday, 28 August 2023 at 07:59:17 UTC, GrimMaple wrote:
> Because on practice, you might want to leave some of the stuff
> unserialized. It's generally better (IMO) to specifically mark
> serializable fields. It also allows serializaing /
> deserializing properties and getters / setters.
I personally am not bothered whichever route mud goes regarding
rules on "serialized by default"
However, I wonder if it is worth reviewing most json libraries
not just in Dlang - but in various popular languages (C++, Go,
etc).
If 90% are serializing all by default (generally speaking in that
lang) I don't think D should try to be different.
asdf above, for example, exports all public members by default..
and can exclude using @serdeIgnore.
In C#, the newtonsoft library exports all public members. You can
exclude using [JsonIgnore]
More information about the Digitalmars-d
mailing list