Support type recognition for JSON and XML