Skip to content

Commit

Permalink
Provide identity encoding from null to null
Browse files Browse the repository at this point in the history
  • Loading branch information
hlship committed Oct 12, 2011
1 parent a91a744 commit a5a2fb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -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);
Expand Down
Expand Up @@ -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.