backport of play-json macros from 2.2-SNAPSHOT to 2.1