JSON.Convertible (Jetty :: Aggregate :: All core Jetty 7.6.8.v20121106 API)
Date: 2012-11-06

org.eclipse.jetty.util.ajax

## Interface JSON.Convertible

- Enclosing class:
    JSON

      public static interface JSON.Convertible

  JSON Convertible object. Object can implement this interface in a similar way to the `Externalizable` interface is used to allow classes to provide their own serialization mechanism.

  A JSON.Convertible object may be written to a JSONObject or initialized from a Map of field names to values.

  If the JSON is to be convertible back to an Object, then the method `JSON.Output.addClass(Class)` must be called from within toJSON()

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `fromJSON(Map object)`
    `void` | `toJSON(JSON.Output out)`

- - ### Method Detail

    - #### toJSON

          void toJSON(JSON.Output out)

    - #### fromJSON

          void fromJSON(Map object)

Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.