TheNitesWhoSay / RareCpp

Creating a simpler, more intuitive means of C++ reflection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Json MappedBy

TheNitesWhoSay opened this issue · comments

It should be possible to specify a surrogate object for JSON I/O which shall be related to the object that shouldn't be I/O'd directly via a RareObjectMapper mapping.

e.g. NOTE(MyType, Json::MappedBy) as a class or field annotation; perhaps find some way to signal that a default surrogate exists for JSON (this is tricky, as I've found no way to aggregate a list of reflected objects; so sadly this may require a specialization in the global scope or some such mechanism.