No longer returns struct and arrays, converts them to maps and arrays of maps