org.apache.jackrabbit.mk.json
Class JsonBuilder
java.lang.Object
org.apache.jackrabbit.mk.json.JsonBuilder
public final class JsonBuilder
- extends Object
Partially based on json-simple
Limitation: arrays can only have primitive members (i.e. no arrays nor objects)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static JsonBuilder.JsonObjectBuilder create(Appendable writer)
throws IOException
- Throws:
IOException
escape
public static String escape(String string)
- Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F).
quote
public static String quote(String string)
encode
public static String encode(String value)
encode
public static String encode(int value)
encode
public static String encode(long value)
encode
public static String encode(float value)
encode
public static String encode(double value)
encode
public static String encode(Number value)
encode
public static String encode(boolean value)
encode
public static String encode(String[] values)
encode
public static String encode(int[] values)
encode
public static String encode(long[] values)
encode
public static String encode(float[] values)
encode
public static String encode(double[] values)
encode
public static String encode(Number[] values)
encode
public static String encode(boolean[] values)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.