Package se.llbit.json

Examples of se.llbit.json.JsonNumber


            for (int j = 0; j < path.length-1; ++j) {
              obj = obj.get(path[j]).object();
            }
            JsonValue jsonValue;
            try {
              jsonValue = new JsonNumber(Integer.parseInt(value));
            } catch (Exception e) {
              jsonValue = new JsonString(value);
            }
            obj.set(path[path.length-1], jsonValue);
            writeSceneJson(file, desc);
View Full Code Here


   * Set integer value
   * @param name
   * @param value
   */
  public void setInt(String name, int value) {
    json.set(name, new JsonNumber("" + value));
  }
View Full Code Here

   * Set double value
   * @param name
   * @param value
   */
  public void setDouble(String name, double value) {
    json.set(name, new JsonNumber("" + value));
  }
View Full Code Here

TOP

Related Classes of se.llbit.json.JsonNumber

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.