def assemble
      parts = [id]
      data.each do |k, v|
        # Characters ", ] and \ must be escaped to prevent any parsing errors
        v = v.gsub(/(\"|\]|\\)/) { |match| '\\' + match }
        parts << "#{k}=\"#{v}\""
      end
      "[#{parts.join(' ')}]"
    end
def assemble
      parts = [id]
      data.each do |k, v|
        # Characters ", ] and \ must be escaped to prevent any parsing errors
        v = v.gsub(/(\"|\]|\\)/) { |match| '\\' + match }
        parts << "#{k}=\"#{v}\""
      end
      "[#{parts.join(' ')}]"
    end
Format data structured data to
 [id k="v" ...]