org.openjena.atlas.json
Class JSON

java.lang.Object
  extended by org.openjena.atlas.json.JSON

public class JSON
extends java.lang.Object

A class that is the front door to the JSON subsystem


Constructor Summary
JSON()
           
 
Method Summary
static JsonValue parse(java.lang.String string)
          Parse a complete JSON object
static JsonValue parseAny(java.lang.String string)
          Parse any JSON value, not just an object, from a file
static JsonValue read(java.lang.String filename)
          Read a JSON object from a file
static JsonValue readAny(java.lang.String filename)
          Read any JSON value, not just an object, from a file
static void write(IndentedWriter output, JsonValue jValue)
          Write out a JSON value - pass a JSON Object to get legal exchangeable JSON
static void write(JsonValue jValue)
          Write out a JSON value to - pass a JSON Object to get legal exchangeable JSON
static void write(java.io.OutputStream output, JsonValue jValue)
          Write out a JSON value - pass a JSON Object to get legal exchangeable JSON
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSON

public JSON()
Method Detail

parse

public static JsonValue parse(java.lang.String string)
Parse a complete JSON object


parseAny

public static JsonValue parseAny(java.lang.String string)
Parse any JSON value, not just an object, from a file


read

public static JsonValue read(java.lang.String filename)
Read a JSON object from a file


readAny

public static JsonValue readAny(java.lang.String filename)
Read any JSON value, not just an object, from a file


write

public static void write(java.io.OutputStream output,
                         JsonValue jValue)
Write out a JSON value - pass a JSON Object to get legal exchangeable JSON


write

public static void write(IndentedWriter output,
                         JsonValue jValue)
Write out a JSON value - pass a JSON Object to get legal exchangeable JSON


write

public static void write(JsonValue jValue)
Write out a JSON value to - pass a JSON Object to get legal exchangeable JSON



Copyright © 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP