Now json handler can accept two args (json text and optional sexp) with backward compatibility.