以JSON格式表格数据

以JSON格式表格数据

问题描述:

以下表格的正确或最佳JSON格式是什么?以JSON格式表格数据

How to convert table to JSON

+0

这是什么表代表什么? – WhatsYourIdea

+0

欢迎来到StackOverflow。请阅读[如何提问](https://stackoverflow.com/help/how-to-ask),并包含您尝试过的内容。 – Antimony

不是很多的细节去,但是(请注意,有序的要求列表):

{ 
    "Product1": { 
     "UNLABELLED FIELD": [2.625, 2.5, 2.375, 2.25], 
     "LOCK": ["PRICE", "PRICE", "PRICE", "PRICE"], 
     "15": [-0.5..., ...], 
     "30": [-0.4..., ...], 
     "45": [-0.3..., ...], 
    }, 
    "Product2": { 
     ... 
    }, 
    "Product3": { 
     ... 
    }, 
} 

如果你不能无序列表:

{ 
    "ProductList": [ 
     "Product1": { 
      "UNLABELLED FIELD": 2.625, 
      "LOCK": "PRICE", 
      "15": -0.5..., 
      "30": -0.4..., 
      "45": -0.3..., 
     }, ... 
    ] 

} 

不过,我会建议保持和处理以CSV格式