code: private static ICondition asValidCondition( JsonObject json)
      {
      try
        {
        return asCondition( json);
        }
      catch( SystemInputException e)
        {
        throw new SystemInputException( "Invalid condition", e);
        }
      }
docs: Returns the condition definition represented by the given JSON object.