ServiceStack.Text is probably one of the easiest ways to do this.
Background: ServiceStack.Text is an independent, dependency-free serialization library that contains ServiceStack's text processing functionality
Example
using ServiceStack.Text;
// Create our arguments object:
object args = new
{
your = "Some",
properties = "Other",
here = "Value",
};
var resultString = fullUrl.PostJsonToUrl(args);
results = resultString.Trim().FromJson<T>();
The PostJsonToUrl
and FromJson
extension methods are some nice syntactic sugar in my opinion.