static private boolean isFlat (JsonValue object) { for (JsonValue child = object.child; child != null; child = child.next) if (child.isObject() || child.isArray()) return false; return true; }
static private boolean isFlat (JsonValue object) { for (JsonValue child = object.child; child != null; child = child.next) if (child.isObject() || child.isArray()) return false; return true; }
private void addChild (String name, JsonValue child) { child.setName(name); if (current == null) { current = child; root = child; } else if (current.isArray() || current.isObject()) { child.parent = current; if (current.size == 0) current.child = child; else { JsonValue last = lastChild.pop(); last.next = child; child.prev = last; } lastChild.add(child); current.size++; } else root = current; }
private void addChild (String name, JsonValue child) { child.setName(name); if (current == null) { current = child; root = child; } else if (current.isArray() || current.isObject()) { child.parent = current; if (current.size == 0) current.child = child; else { JsonValue last = lastChild.pop(); last.next = child; child.prev = last; } lastChild.add(child); current.size++; } else root = current; }
private void prettyPrint (JsonValue object, Writer writer, int indent, PrettyPrintSettings settings) throws IOException { OutputType outputType = settings.outputType; if (object.isObject()) { if (object.child == null) writer.append("{}");
private void prettyPrint (JsonValue object, Writer writer, int indent, PrettyPrintSettings settings) throws IOException { OutputType outputType = settings.outputType; if (object.isObject()) { if (object.child == null) writer.append("{}");
JsonValue element = elements.peek(); elements.clear(); if (element != null && element.isObject()) throw new SerializationException("Error parsing JSON, unmatched brace."); else
JsonValue element = elements.peek(); elements.clear(); if (element != null && element.isObject()) throw new SerializationException("Error parsing JSON, unmatched brace."); else
if (jsonData == null) return null; if (jsonData.isObject()) { String className = typeName == null ? null : jsonData.getString(typeName, null); if (className != null) {
if (jsonData == null) return null; if (jsonData.isObject()) { String className = typeName == null ? null : jsonData.getString(typeName, null); if (className != null) {
if (value.isObject()) { if (value.name != null) object(value.name);
if (value.isObject()) { if (value.name != null) object(value.name);
private void json (JsonValue object, StringBuilder buffer, OutputType outputType) { if (object.isObject()) { if (object.child == null) buffer.append("{}");
private void json (JsonValue object, StringBuilder buffer, OutputType outputType) { if (object.isObject()) { if (object.child == null) buffer.append("{}");
private void prettyPrint (JsonValue object, StringBuilder buffer, int indent, PrettyPrintSettings settings) { OutputType outputType = settings.outputType; if (object.isObject()) { if (object.child == null) buffer.append("{}");
private void prettyPrint (JsonValue object, StringBuilder buffer, int indent, PrettyPrintSettings settings) { OutputType outputType = settings.outputType; if (object.isObject()) { if (object.child == null) buffer.append("{}");
static private boolean isFlat (JsonValue object) { for (JsonValue child = object.child; child != null; child = child.next) if (child.isObject() || child.isArray()) return false; return true; }
private static void readableInkDialogsInternal(JsonValue v, StringBuilder sbMD, OrderedProperties prop) { if (v.isArray() || v.isObject()) { if (v.name != null && v.isArray() && v.parent != null && v.parent.parent != null && v.parent.parent.parent != null) {
private void addChild (String name, JsonValue child) { child.setName(name); if (current == null) { current = child; root = child; } else if (current.isArray() || current.isObject()) { child.parent = current; if (current.size == 0) current.child = child; else { JsonValue last = lastChild.pop(); last.next = child; child.prev = last; } lastChild.add(child); current.size++; } else root = current; }
if (value.isObject()) { if (value.name != null) object(value.name);