Skip to content

Cannot pass object as perm to map. #27

@rahman973

Description

@rahman973

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"}

help me fast plz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions