code: public String resource_to_string(base_resource resrc, options option)
  	{
  		String result = "{ ";
  		if (option != null && option.get_action() != null)
  			result = result + "\"params\": {\"action\":\"" + option.get_action() + "\"},";
  
  		result = result + "\"" + resrc.get_object_type() + "\":" + this.resource_to_string(resrc) + "}";
  		return result;
  	}
docs: Converts NetScaler SDX resource to Json string.
  @param resrc API resource.
  @param option options class object.
  @return returns a String