Package com.github.underscore
Class Json
- java.lang.Object
-
- com.github.underscore.Json
-
public final class Json extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Json.JsonArray
static class
Json.JsonObject
static class
Json.JsonParser
static class
Json.JsonStringBuilder
static class
Json.JsonValue
static class
Json.ParseException
-
Constructor Summary
Constructors Modifier Constructor Description private
Json()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatJson(String json)
static String
formatJson(String json, Json.JsonStringBuilder.Step identStep)
static Object
fromJson(String string)
static String
toJson(Collection collection)
static String
toJson(Collection collection, Json.JsonStringBuilder.Step identStep)
static String
toJson(Map map)
static String
toJson(Map map, Json.JsonStringBuilder.Step identStep)
static String
toJsonJavaString(Collection collection)
static String
toJsonJavaString(Map map)
-
-
-
Field Detail
-
NULL
private static final String NULL
- See Also:
- Constant Field Values
-
DIGIT
private static final String DIGIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
toJson
public static String toJson(Collection collection, Json.JsonStringBuilder.Step identStep)
-
toJson
public static String toJson(Collection collection)
-
toJson
public static String toJson(Map map, Json.JsonStringBuilder.Step identStep)
-
toJsonJavaString
public static String toJsonJavaString(Collection collection)
-
formatJson
public static String formatJson(String json, Json.JsonStringBuilder.Step identStep)
-
-