Save arrays as Json.