I’m working on a script for Scriptable that would allow users to download JSON data from Micro.blog’s Micropub on their latest 100 posts, look in the content of the posts for a certain query, and if it matches assign that post a particular category. But I keep getting the following error from Scriptable.

Error: The data couldn’t be read because it isn’t in the correct format.

Anyone want to take a look at the script and see if you can help me out?