fixed: parse the JSON first, then only if it's valid do the client deletion for a reload