Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.gwtext.client.util
Class JSON

    java.lang.Object
      com.gwtext.client.util.JSON

    public class JSON

extends java.lang.Object

JSON Helper class.

Method Summary
`static com.google.gwt.core.client.JavaScriptObject` | `decode(java.lang.String json)` Decodes (parses) a JSON string to an object.
`static java.lang.String` | `encode(com.google.gwt.core.client.JavaScriptObject json)` Encodes a Json object.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### decode

    public static com.google.gwt.core.client.JavaScriptObject decode(java.lang.String json)

  Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError.

  Parameters:
    `json` - the Json String
  Returns:
    the Json object

### encode

    public static java.lang.String encode(com.google.gwt.core.client.JavaScriptObject json)

  Encodes a Json object.

  Parameters:
    `json` - the json object
  Returns:
    the JSon String

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD