Purpose of Jay struct
a2 opened this issue · 2 comments
a2 commented
It seems that the Jay
struct should have static functions instead of member functions, since the member functions only create instances of NativeParser
and NativeTypeConverter
.
czechboy0 commented
You're right.
At the moment the struct doesn't store anything, but I'm planning to attach formatting and parsing configuration (e.g. pretty printing & accepting fragments), which you'd initialize the Jay
struct with, and then all calls to the (de)serialization function would respect that config.
Does that make sense?
a2 commented
Yeah, makes sense.