public JsonObjectBuilder rewriteJson(JsonObjectBuilder copyInto,JsonValue tree,String key){
		/**
		 * Helper function used to parse json
		 */
		switch(tree.getValueType()){
		case OBJECT:
			JsonObject obj = (JsonObject) tree;
			for(String name : obj.keySet()){
				copyInto = rewriteJson(copyInto,obj.get(name),name);
			}
			break;
		case STRING:
			JsonString st = (JsonString) tree;
			copyInto.add(key, st.getString());
			break;
		default:
			break;
		}
		return copyInto;

	}