org.apache.tapestry5.json.modules

## Class JSONModule

- java.lang.Object
- - org.apache.tapestry5.json.modules.JSONModule

-     public class JSONModule
      extends Object

  A module that integrates JSON into Tapestry in terms of type coercions. tapestry-json can still be used independently of the rest of Tapestry (since its a 'provided' dependency), but when used with tapestry-ioc on the classpath, the coercions described by this module become available.
  Since:
    5.3

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JSONModule()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `provideCoercions(Configuration<CoercionTuple> configuration)` `String` to `JSONObject` `String` to `JSONArray`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JSONModule

          public JSONModule()

  - ### Method Detail

    - #### provideCoercions

          @Contribute(value=TypeCoercer.class)
          public static void provideCoercions(Configuration<CoercionTuple> configuration)

      - `String` to `JSONObject`
      - `String` to `JSONArray`

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.