Open rahman973 opened 4 years ago
while creating a product we make a map. which works fine for simple attributes, but is not working for object type attributes.
dimensions.setLength("1"); dimensions.setWidth("1"); dimensions.setHeight("1"); Gson gson = new Gson(); String json = gson.toJson(dimensions); productInfo.put("dimensions",json);
on printing, it shows JSON has the object of dimensions {"length":"1","width":"1","height":"1"}
{"length":"1","width":"1","height":"1"}
help me fast plz
same is the case while working with images and categories.
while creating a product we make a map. which works fine for simple attributes, but is not working for object type attributes.
on printing, it shows JSON has the object of dimensions
{"length":"1","width":"1","height":"1"}
help me fast plz