1
我正在尋找JSTools的JSFormat的「相反」格式。下面一個例子:Notepad ++:什麼是JSFormat的「相反」格式?
JSON代碼示例:
title = Automatic at 07.02.17 & appId = ID_1 & data = {
"base": "+:background1,background2",
"content": [{
"appTitle": "Soil",
"service": {
"serviceType": "AG",
"Url": "http://test.de/xxx"
},
"opacity": "1"]
}
],
"center": "4544320.372869264,5469450.086030475,31468"
}
& context = PARAMETERS
,我需要轉換格式的格式如下:
title=Automatic at 07.02.17 &appId=ID_1&data={"base":"+:background1,background2","content":[{"appTitle":"Soil","service":{"serviceType":"AG","Url":"http://test.de/xxx"},"opacity":"1"]}],"center":"4544320.372869264,5469450.086030475,31468"}&context=PARAMETERS
這是一個解碼的URL(用MIME工具)從本HTML POST:
title%3DAutomatic%20at%2007.02.17%20%26appId%3DID_1%26data%3D%7B%22base%22%3A%22+%3Abackground1,background2%22,%22content%22%3A%5B%7B%22appTitle%22%3A%22Soil%22,%22service%22%3A%7B%22serviceType%22%3A%22AG%22,%22Url%22%3A%22http%3A%2F%2Ftest.de%2Fxxx%22%7D,%22opacity%22%3A%221%22%5D%7D%5D,%22center%22%3A%224544320.372869264,5469450.086030475,31468%22%7D%26context%3DPARAMETERS%0D%0A
我必須在JSON代碼中進行更改後再回來。從第二個到第三個格式我可以使用URL編碼(MIME工具),但是從第一個格式到第二個格式重新格式化怎麼辦?
我的問題:您有想法如何將第一個(JSON)格式轉換爲Notepad ++中的第二個(解碼的URL)嗎?類似於JSFormat的「相反」的東西?