Importing JSON feed giving Notice: Array to string conversion error

It looks to be one of the sanitize_text_field or esc_html calls. That error is telling you that an array is being passed to to rather than the string type it is expecting.

If you look at the error log, you can probably see where the function is being called that is getting the wrong parameter.