That properties can be converted to a Java object using the Gson
library.
You need a class that models that object and then Gson
takes care of the deserialization.
Unfortunately you hit an image instead of putting text, so the example looks only at the first three attributes.
public class MisPropiedades{
@SerialName("latitude")
private double latitud;
@SerialName("longitude")
private double longitud;
@SerialName("name")
private String nombre;
...
// Aca getters y setters
}
Then in the program:
...
String props = templateComponenets.get(4).getProperties(); // Supongo que esto devuelve el string properties
MisPropiedades misPropiedades = new Gson().fromJson(props, MisPropiedades.class);
...
And in misPropiedades
you have instantiated the object.
Here you can get the library either the jar or how to include it in maven.