Improve getRawData to handle all types of responses. (Array, Object, String)