Error with Clay.formatForJSON() in Spotify API Integration
Hey Clay! I've been working with the Spotify API π to share with the GTME team to create tailored playlists for recipients during my outreach and ran into the following error:
Failed to parse body input: Unexpected token "\" (0x5C) in JSON at position 10 while parsing near "{"uris": [\n spotify:track:..."
Turns out the bug came from the Clay.formatForJSON() during one of my POSTs using the HTTP API enrichment. When I recreated it, the autoformatting is bugging out when placed in an array. Just thought I'd call it to your attention! I posted the resolution below and am happy to walk through the integration, if helpful!