Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pass object as perm to map. #27

Open
rahman973 opened this issue Feb 7, 2020 · 1 comment
Open

Cannot pass object as perm to map. #27

rahman973 opened this issue Feb 7, 2020 · 1 comment

Comments

@rahman973
Copy link

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

@rahman973
Copy link
Author

same is the case while working with images and categories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant