common: Add cockpit_json_get_array.
WIP - units