protected List<Query> parseQueriesJson(String queriesString) throws Exception {
// Parse request into a JSON object
JSONObject jsonObj = null;
{
JSONTokener jsonTokener = new JSONTokener(queriesString);
Object obj = jsonTokener.nextValue();
if( obj instanceof JSONObject ) {
jsonObj = (JSONObject)obj;
} else {
throw new Exception("Unexpected object type for queries: "+obj.getClass().getSimpleName());
}