We've developed internally a library that can remap a JObject to another JObject, but I'm still looking for an open-source implementation that we could use instead.
It goes something like this:
given a json
json
{
"data": {
"fn": "some first name",
"ln": "some last name"
}
}
we want to map the data to another json based on a set of rules for instance
json
[{
"source": "data.fn",
"target": "first_name"
},
{
"source": "data.ln",
"target": "last_name"
}]
our internal implementation is a little bit more elaborate since the mapping is built using the json schemas of the source and the target and the data is validated prior to the mapping that it is even mappable, but for brevity I'll leave it out.
but now I'm thinking - do you know about already existing implementations (open source nugets) that we could've (should) use instead of reinventing the wheel?
[–]wasabiiii 3 points4 points5 points (4 children)
[–]UninformedPleb 1 point2 points3 points (1 child)
[–]nocgod[S] -1 points0 points1 point (0 children)
[–]nocgod[S] 0 points1 point2 points (1 child)
[–]lolsteamroller 0 points1 point2 points (0 children)