我有這個字符串字符串地圖<字符串,對象>
"{id={date=1467991309000, time=1467991309000, timestamp=1467991309, timeSecond=1467991309, inc=-360249353, machine=-705844029, new=false}, id_lista={date=1467991309000, time=1467991309000, timestamp=1467991309, timeSecond=1467991309, inc=-360249354, machine=-705844029, new=false}, id_documento=1297183, estado=1, fecha_ing=1467991309026, fecha_mod=1468010645484, identificador_r=null, titulo=null, pais=null, sector=null, url=null, dato1=null, dato2=null}"
我怎樣才能在Java解析得到這樣的事情Map<String,Object>
id:{}
id_lista:{}
id_documento:123
estado:1
fecha_ing:1467991309026
etc..
更新:
- 最後,我將其轉換爲JSONArray以獲得值ES。
你是什麼意思的映射?你向我們展示了一個字符串和另一個字符串,你想將一個字符串轉換爲另一個字符串? –
不,我需要一個來自字符串 – Bosses
的Map我認爲你的意思是'parsing'而不是'mapping'。它看起來像你試圖解析的JSON格式。 –
vlatkozelka