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

## org.apache.tapestry5.json.services
Class JSONModule

    java.lang.Object
      org.apache.tapestry5.json.services.JSONModule

    public class JSONModule

extends java.lang.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
`JSONModule()`

Method Summary
`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`

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

Copyright © 2003-2012 The Apache Software Foundation.