Package de.yaams.extensions.basemap.org.json

Examples of de.yaams.extensions.basemap.org.json.JSONArray


   * @throws ParseException
   */
  public static JSONArray getAsJSONArray(Object obj) throws ParseException {
    // We always convert to a json array: json object become a json array
    // with one item
    JSONArray result = null;

    if (obj instanceof JSONArray) {
      result = (JSONArray) obj;
    } else if (obj instanceof JSONObject) {
      result = new JSONArray();
      result.put(obj);
    } else {
      throw new ParseException("problem while interpreting " + obj, 0);
    }

    return result;
View Full Code Here

TOP

Related Classes of de.yaams.extensions.basemap.org.json.JSONArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.