fix: make it not explode when invalid JSON is parsed