posted 13 years ago
I have this question:
How to populate this object from a struts2 action. My action populates without any problem a lot of my objects, but I have a restriction on a JSON input. My input is like this:
I don't now how to populate...The class geometry can have a double[] or double[][] or double[][][] because the JSON input can have multiple geometry types. Json examples:
And my object is this:
If I modify my geometry class to double[] coordinates...it works, but only with point geometry...
I use struts2 2.1.8 with json plugin.
Many thanks