fixing json array type