docker: converting array to json.