我在Java中有一个Map对象,我将其传递给JavaScript。该对象看起来像这样
Map<String, String[][]>
现在我在Java中有一个JSON对象,我将其传递给JavaScript,我需要在JavaScript中转换此对象,因此它将与上面的对象相同。
这是我用Java从JavaScript中收到的JSON:
{"Key":[["value1_1","value1_2","value1_3","value1_4","value1_5"],
["value2_1","value2_"],["value3_1","value3_","value3_3"],
["value4_1","value4_2","value4_3","value4_4","value4_5","value4_7"],
["value5_1"]]}
如何基于此对象在JavaScript端构建对象?
我需要在JS中访问这些值,然后再修改它们等等。