Package: org.apache.groovy.json.internal

## [Java] Class JsonStringDecoder

- org.apache.groovy.json.internal.JsonStringDecoder

-     public class JsonStringDecoder
      extends Object

  Decodes JSON string escape sequences from character buffers.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public static String` | `decode(char[] chars, int start, int to)` Decodes a JSON string slice, avoiding extra work when no escapes are present.
    `` | `public static String` | `decodeForSure(char[] chars, int start, int to)` Decodes a JSON string slice assuming escape processing may be required.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### public static String decode(char[] chars, int start, int to)

      Decodes a JSON string slice, avoiding extra work when no escapes are present.

      Parameters:
        `chars` - source character buffer
        `start` - inclusive start index
        `to` - exclusive end index
      Returns:
        decoded string value

    - #### public static String decodeForSure(char[] chars, int start, int to)

      Decodes a JSON string slice assuming escape processing may be required.

      Parameters:
        `chars` - source character buffer
        `start` - inclusive start index
        `to` - exclusive end index
      Returns:
        decoded string value