Some discussion of this feature here.
We skipped over this for the time being since it caused some headaches with escaping.
knz edit (2019-03-13): the bigger problem is that arrays of jsonb do not have a proper lexicographic encoding. This can't be addressed properly until the sql/kv mapping is extended to support non-lexicographic orderings and lookups.
Until this is complete, I think it'd be worth updating the documentation to show that JSON arrays are not yet supported:
https://www.cockroachlabs.com/docs/stable/data-types.html
"ARRAY: A 1-dimensional, 1-indexed, homogeneous array of any non-array data type."
Most helpful comment
Until this is complete, I think it'd be worth updating the documentation to show that JSON arrays are not yet supported:
https://www.cockroachlabs.com/docs/stable/data-types.html
"ARRAY: A 1-dimensional, 1-indexed, homogeneous array of any non-array data type."