write json as an array