Add support for {value:json} to json encode values