public SortedMap<String, FileData> jsonToMap(String data) {
TreeMap<String, FileData> map = new TreeMap<String, FileData>();
try {
NativeObject json = (NativeObject) parser.parseValue(data);
for (Object scriptURI : json.keySet()) {
NativeObject scriptData = (NativeObject) json.get(scriptURI);
NativeArray lineCoverageArray = (NativeArray) scriptData.get("lineData");
NativeObject branchJSONArray = (NativeObject) scriptData.get("branchData");
List<Integer> countData = new ArrayList<Integer>(lineCoverageArray.size());
for (int i = 0; i < lineCoverageArray.size(); i++)