Trying to extract publisher_platforms and instagram_positions arrays from a JSON response and mapping them to database object fields.
Input
Here is the function that I am using to extract the array and mapping it to array fields in the database. Can't seem to figure out why it is returning null entries.