I’m using playframework, is there any way to convert a java object into Play recognizable pojo parameter list?
For example I have two class
public class A{
B b;
String room;
}
public class B{
String name;
}
When I get a A instance a, I can change it into two parameters
a.room=myroom&a.b.name=myname
Do I have to travel through a json converted from that instance?
Thanks a lot.
I wrote a Util to convert Object to playframework friendly parameter list with jackson.databind
Usage:
I hope it’s right.
Add dependencies to use MutablePair and jackson.databind