How to pass an array as attribute of shortcode to work properly shortcode parser?

Try…

  • base64_encode(serialize($array))
  • base64_encode(json_encoe($array))

and reverse decoding in shortcode ofcourse