Class LJSON

java.lang.Object
net.thevpc.commons.ljson.LJSON

public class LJSON extends Object
  • Field Details

    • NULL

      public static final LJSON NULL
  • Constructor Details

    • LJSON

      public LJSON(org.hjson.JsonValue value)
  • Method Details

    • of

      public static LJSON of(String json)
    • isUndefined

      public boolean isUndefined()
    • getDouble

      public Double getDouble(String name)
    • objectMembers

      public LJSON.Member[] objectMembers()
    • arrayMembers

      public LJSON[] arrayMembers()
    • get

      public LJSON get(String name)
    • get

      public LJSON get(int index)
    • asStringArray

      public String[] asStringArray()
    • asString

      public String asString()
    • asDouble

      public double asDouble(double defaultValue)
    • asDouble

      public Double asDouble()
    • asInt

      public int asInt(int defaultValue)
    • asInt

      public Integer asInt()
    • asObject

      public LJSON asObject()
    • isObject

      public boolean isObject()
    • isArray

      public boolean isArray()
    • isString

      public boolean isString()
    • isNull

      public boolean isNull()
    • toString

      public String toString()
      Overrides:
      toString in class Object