Skip to content

Instantly share code, notes, and snippets.

@renatocantarino
Created June 19, 2013 15:00
Show Gist options
  • Select an option

  • Save renatocantarino/5814994 to your computer and use it in GitHub Desktop.

Select an option

Save renatocantarino/5814994 to your computer and use it in GitHub Desktop.
using System.Web.Script.Serialization;
namespace cliente.Helper
{
public static class Json
{
public static string ToJSON(this object obj)
{
var _serializador = new JavaScriptSerializer();
return _serializador.Serialize(obj);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment