added code to support Play JSON types