Link to home
Create AccountLog in
Avatar of narmi2
narmi2

asked on

JSON Shopping Cart

Dear Experts.

What is the best way to structure shopping cart data JSON style?

Thanks in advance.
Avatar of Michael701
Michael701
Flag of United States of America image

I don't think anyone can say there is a BEST way to create a shopping cart. I'd first have to ask what kind of items are you placing in the cart? A simple cart would have Line item, item code, description, quantity and price. More complex items may need size, color or other descriptors.
Avatar of narmi2
narmi2

ASKER

I will be needing at least the following

item id
item name
item price
quantity
ASKER CERTIFIED SOLUTION
Avatar of Badotz
Badotz
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
The strong, silent type, eh?

No worries - glad to help.