Class JSONModule
java.lang.Object
org.apache.tapestry5.json.modules.JSONModule
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic void
provideCoercions
(MappedConfiguration<CoercionTuple.Key, CoercionTuple> configuration)
-
Constructor Details
-
JSONModule
public JSONModule()
-
-
Method Details
-
provideCoercions
@Contribute(TypeCoercer.class) public static void provideCoercions(MappedConfiguration<CoercionTuple.Key, CoercionTuple> configuration) String
toJSONObject
String
toJSONArray
- Parameters:
configuration
- the configuration to provide the type coercer to
-