Add JSON Codec as a registered Codec
Merge branch 'patch-1' of https://github.com/davydotcom/grails-core into davydotcom-patch-1
fix Unroll label in HTMLEncoderSpec
Fix passing null to Codec . @CompileStatic must have caused this problem. NullObject instances get passed to Codecs when encodeAs* method is called on null. This fixes the problem.
Fix for GRAILS-10980: make encodeAsJSON() and encodeAsXML() work as in older grails versions for other than CharSequence/String and primitive objects