我正在写一个JSON文件,其中包含有关电子设备的数据,如电视,控制台等。从非3D LED电视中分类,让我们说3D LED电视的最佳方法是什么?将属性'3d'
放在'leds'
对象中会更有意义吗?或者在'3d'
内创建'leds'
对象是否更好?
{"products":[
{ "tvs":[
{"samsung":[
{"leds":[
{
"product_id": "034567",
"product_name": "Samsung UA22F5100 22'' LED TV (Black)",
"model_no": "UA22F5100",
"brand": "Samsung",
"price": 399,
"screen_size": 22,
"screen_res": "1920 x 1080",
"usb": 1,
"hdmi": 1,
"screen_format": "LED",
"dimensions": "513.1 x 366.5 x 169.6",
"manuf_guarantee": "1 year"
}
]}
]}
]}
]}