Skip to content

Instantly share code, notes, and snippets.

@alelazcano
Last active April 14, 2023 01:54
Show Gist options
  • Save alelazcano/4344a601a044aefb6371ecce4f77a3f7 to your computer and use it in GitHub Desktop.
Save alelazcano/4344a601a044aefb6371ecce4f77a3f7 to your computer and use it in GitHub Desktop.
Ejemplo básico de un JSON
{
"normalPrice": 134.25,
"promotionalPrice": 128.94,
"priceList1": [10,100],
"priceList2": [13,500]
}
{
"productId": 789654123,
"product": {
"name": "Product name",
"description": "Description",
"extraInfo": {}
},
"skuId": ["789654123-00", "789654123-01"],
"sku":[
{
"skuId": "789654123-00",
"skuName": "Sku name 00",
"weight": 654.20,
"stock": {
"wh001": 201,
"wh002": 102,
"totalStock": 303
}
},
{
"skuId": "789654123-01",
"skuName": "Sku name 01",
"weight": 344.20,
"stock": {
"wh001": 54,
"wh002": 60,
"totalStock": 114
}
}
]
}
{
"productId": 789654123,
"sku": [
{
"skuId": "789654123-00",
"wh001": 201,
"wh002": 102,
"totalStock": 303
},
{
"skuId": "789654123-01",
"wh001": 11,
"wh002": 32,
"totalStock": 43
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment