package com.keystar.plane.inspection.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class jsonUtil {

//    public static Map<String, List> jsonTransData(String payload){
//        JSONObject jsonObject = JSON.parseObject(payload);
//        List<String> featureList = (List<String>)jsonObject.get("features");
//        Map<String,List> result = new HashMap<>();
//        for (int i = 0; i<featureList.size(); i++){
//            JSONObject object1 = JSON.parseObject(featureList.get(i));
//            List<List> coordinatesAll = (List<List>) object1.get("coordinates");
//            List<List> coordinates = coordinatesAll.get(0);
//            JSONObject properties = (JSONObject) object1.get("properties");
//            result.put((String) properties.get("名称"),coordinates);
//        }
//        return result;
//    }
}
