Use JSON to seralize nested array.