Skip to content
Browse files

Provide identity encoding from null to null

  • Loading branch information...
1 parent a91a744 commit a5a2fb166472d22224d310fa0a497fb78e45a09e @hlship committed Jul 15, 2011
View
1 tapx-json/src/main/java/com/howardlewisship/tapx/json/JSONModule.java
@@ -45,6 +45,7 @@ public static void standardJSONEncoders(MappedConfiguration<Class, JSONEncoder>
configuration.add(JSONObject.class, identity);
configuration.add(JSONArray.class, identity);
configuration.add(JSONString.class, identity);
+ configuration.add(void.class, identity);
configuration.addInstance(Iterable.class, IterableJSONEncoder.class);
configuration.addInstance(Map.class, MapJSONEncoder.class);
View
1 tapx-json/src/test/groovy/json/tests/JSONEncoderTests.groovy
@@ -33,5 +33,6 @@ class JSONEncoderTests extends Specification {
false | false
true | true
3.75f | 3.75f
+ null | null
}
}

0 comments on commit a5a2fb1

Please sign in to comment.
Something went wrong with that request. Please try again.