create FromJSON instance for ByteString