code: public String resource_to_string(base_resource resrc)
  	{
  		Gson gson = new Gson();
  		return gson.toJson(resrc);
  	}
docs: Converts netscaler resource to Json string.
  @param resrc nitro resource.
  @return returns a String