Skip to content Skip to sidebar Skip to footer

How We Can Access The Array Objects Of Javascript Passing Through Ajax In Java?

I need to access array objects of javascript passed through ajax in java. I am using dojo. This is how I tried to pass values through dojo ajax call. Javascript var arrayObj = [{'

Solution 1:

You can use the ObjectMapper class from Jackson Library to parse your array of objects. Here is the way you can do it:

ObjectMapper mapper = new ObjectMapper();

YourClass[] objects = mapper.readValue(items, YourClass.class);

BR.


Post a Comment for "How We Can Access The Array Objects Of Javascript Passing Through Ajax In Java?"