You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ok, provided that we implement it within our wrapper around nlohmann (so that is it not an implementation problem) could u hint about what would be the "jsonic" way of achieving what we seek?
I mean, implementing our own special handling of "$ref" would be a good choice or should we go for a different approach to be able to include one json inside the other
Dear @nlohmann@dota17 i appreciate that (i also read it in your docs).
We have a wrapper on the top of your lib which allows us to implement extra stuff. I was asking for a hint of what you think should be the best strategy to achieve it, not from a programming point of view but rather from a "json-organizational" point of view.
Activity
dota17 commentedon Mar 28, 2020
This library didn't support Json Reference now, so I'm afraid it can't do that.
RiccardoRossi commentedon Mar 30, 2020
ok, provided that we implement it within our wrapper around nlohmann (so that is it not an implementation problem) could u hint about what would be the "jsonic" way of achieving what we seek?
I mean, implementing our own special handling of "$ref" would be a good choice or should we go for a different approach to be able to include one json inside the other
nlohmann commentedon Mar 31, 2020
@dota17 is right, the library does not support this.
RiccardoRossi commentedon Mar 31, 2020
Dear @nlohmann @dota17 i appreciate that (i also read it in your docs).
We have a wrapper on the top of your lib which allows us to implement extra stuff. I was asking for a hint of what you think should be the best strategy to achieve it, not from a programming point of view but rather from a "json-organizational" point of view.
nlohmann commentedon Apr 4, 2020
You could do it either inside the parser writing your own SAX interface or you do it as post processing step after parsing. For the former, you may want to have a look at the
json_sax_dom_parser(https://github.com/nlohmann/json/blob/develop/include/nlohmann/detail/input/json_sax.hpp#L145) parser. With some work, you should be able to add the required logic to replace$refvalues.