org.apache.jackrabbit.oak.commons.json
Class JsonObject

java.lang.Object
  extended by org.apache.jackrabbit.oak.commons.json.JsonObject

public class JsonObject
extends Object

Simple JSON Object representation


Constructor Summary
JsonObject()
           
 
Method Summary
static JsonObject create(JsopTokenizer t)
          Reads a JSON object from the given tokenizer.
 Map<String,JsonObject> getChildren()
           
 Map<String,String> getProperties()
           
 void toJson(JsopBuilder buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonObject

public JsonObject()
Method Detail

create

public static JsonObject create(JsopTokenizer t)
Reads a JSON object from the given tokenizer. The opening '{' of the object should already have been consumed from the tokenizer before this method is called.

Parameters:
t - tokenizer
Returns:
JSON object

toJson

public void toJson(JsopBuilder buf)

getProperties

public Map<String,String> getProperties()

getChildren

public Map<String,JsonObject> getChildren()


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.