whoops, that was a stupid bug
ARARRRARRRRGGHHRHHRHGHGHGHGHGH

unit testing exposed a fragile assignment - we are calling json.parse, but what if we are not passing json? it will barf.