73 | | |
| 73 | public String toJSONString3(SClass[] classes){ |
| 74 | String json_str=""; |
| 75 | json_str+="{\"startClassURI\":\""+ startClass+"\","; |
| 76 | |
| 77 | if (classLinks != null && classLinks.size() != 0) { |
| 78 | json_str+="\"classLinks\":["; |
| 79 | |
| 80 | JSONObject[] classLinkObjs = new JSONObject[classLinks.size()]; |
| 81 | for (int i = 0; i < classLinks.size(); i++) { |
| 82 | if(i>0){json_str += "," ;} |
| 83 | json_str+= classLinks.get(i).toJSONString3(classes); |
| 84 | } |
| 85 | json_str+="]"; |
| 86 | } |
| 87 | json_str+="}"; |
| 88 | |
| 89 | return json_str; |
| 90 | } |
| 91 | |
| 92 | |