Hey,
I'm trying to write a protocol parser in C# which would be simple to maintain.
My input is a Json payload, and I'm trying to convert it into a certain Request object in my inheritance-tree according to its identifier (which is obviously commonly named across all requests...).
I'm trying to come up with a way to parse this protocol without having a headache (if its possible).
I would be most grateful if somebody could offer me the lightest Json Deserialization Framework that will be able to support my needs.
My ultimate desires are rather simple.
I need to parse the identifier (obviously the whole object will be parsed already), and then, once I know the type I'm expecting, I could obtain the type (probably using enum attributes...), and reflect the rest of the object onto the type's format.
Are there even such frameworks that could help me accomplish my needs easily? Is there a better solution?
Thank you for reading, Your comments and suggestions are very welcome :)