Attempt to parse data as JSON.