Here you can find the source of removeJsonPoint(String json, String... points)
public static String removeJsonPoint(String json, String... points)
//package com.java2s; public class Main { public static String removeJsonPoint(String json, String... points) { String result = json;// www .j av a 2s.co m int len = points.length; for (int i = 0; i < len; i++) { int index = json.indexOf("\"" + points[i] + "\""); result = json.substring(0, index); // remove point int index2 = json.indexOf("\",", index); result += json.substring(index2 + 2); // remove ", json = result; } return result; } }