Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.web.jcr.rest.client.json
Class JsonUtils

    java.lang.Object
      org.modeshape.web.jcr.rest.client.json.JsonUtils

    public final class JsonUtils

extends Object

The `JsonUtils` class provides utilities needed to work with the ModeShape REST server JSON API.

Method Summary
`static String` | `decode(String text)`
`static String` | `encode(String text)` Forward slashes ('/') are not encoded.

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

Method Detail

### decode

    public static String decode(String text)
                         throws UnsupportedEncodingException

  Parameters:
    `text` - the text being URL decoded (never `null`)
  Returns:
    the decoded text
  Throws:
    `UnsupportedEncodingException` - if the charset is not supported

### encode

    public static String encode(String text)
                         throws UnsupportedEncodingException

  Forward slashes ('/') are not encoded.

  Parameters:
    `text` - the text being URL encoded (never `null`)
  Returns:
    the decoded text
  Throws:
    `UnsupportedEncodingException` - if the charset is not supported

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.