Decode bytes as JSON when struct is passed to the decoder.