Hi All,

I'm calling different REST APIs and getting different kinda JSON responses; 
is there any way to pick particular attribute from different JSON responses 
and map it to a one common property of defined POJO (Resource for my API) 
that can then be sent as a response from the REST API that I've exposed?

For Example:
By calling REST API "https://xyz.com/resources/resource"; gives me 
{"name":"abc.txt"}
and calling "https://abc.com/resources/resource"; gives me 
{"title":"idontknow.txt"}

And I have one resource class defined for my APIs to return i.e.
MyResource
{
   String fileName;
}

So is there any way that I can map "name"/"title" to fileName i.e. how can 
I use jackson to deserialize these jsons to MyResource type?

Please let me know if this is valid? and if yes, how? 

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to