DataBinding binding = new SDODataBinding();
binding.initialize(s);
DataBindingJSONProvider<Structure> p = new DataBindingJSONProvider<Structure>();
p.setDataBinding(binding);
p.setNamespaceMap(Collections.singletonMap("http://apache.org/structure/types", "p0"));
Structure struct = new StructureImpl();
struct.getTexts().add("text1");
struct.setText("sdo");
struct.setInt(3);
struct.setDbl(123.5);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
p.writeTo(struct, Structure.class, Structure.class,
new Annotation[0], MediaType.APPLICATION_JSON_TYPE, new MetadataMap<String, Object>(), bos);
String data = "{\"p0.Structure\":{\"@xsi.type\":\"p0:Structure\",\"p0.text\":\"sdo\",\"p0.int\":3"
+ ",\"p0.dbl\":123.5,\"p0.texts\":\"text1\"}}";