I found a similar stackoverflow question:
Json.Net And ActionResult
The answer there suggested using
return Content( converted, "application/json" );
That seems to work on my very simple page.
More Related Contents:
- TypeNameHandling caution in Newtonsoft Json
- JSON.NET Error Self referencing loop detected for type
- Does Json.NET cache types’ serialization information?
- Cannot deserialize the JSON array (e.g. [1,2,3]) into type ‘ ‘ because type requires JSON object (e.g. {“name”:”value”}) to deserialize correctly
- Json.Net Serialization of Type with Polymorphic Child Object
- Detect if deserialized object is missing a field with the JsonConvert class in Json.NET
- Json.net serialize/deserialize derived types?
- Using JsonConvert.DeserializeObject to deserialize Json to a C# POCO class
- How to serialize a Dictionary as part of its parent object using Json.Net
- How to ignore JsonProperty(PropertyName = “someName”) when serializing json?
- Json.Net: Serialize/Deserialize property as a value, not as an object
- Exclude property from serialization via custom attribute (json.net)
- How to serialize/deserialize a custom collection with additional properties using Json.Net
- Deserializing JSON to abstract class
- Not ableTo Serialize Dictionary with Complex key using Json.net
- JSON.NET Parser *seems* to be double serializing my objects
- Custom Deserialization using Json.NET
- JSON.Net Self referencing loop detected
- Force JSON.NET to include milliseconds when serializing DateTime (even if ms component is zero)
- Can Newtonsoft Json.NET skip serializing empty lists?
- Serializing null in JSON.NET
- Ignoring null fields in Json.net
- Serializing an interface/abstract object using NewtonSoft.JSON
- Json.Net adding $id to EF objects despite setting PreserveReferencesHandling to “None”
- Json.NET: Deserializing nested dictionaries
- JSonNet boolean serialization
- Serialize only interface properties to JSON with Json.net
- Deserializing JSON into an object with Json.NET
- Ignore Base Class Properties in Json.NET Serialization
- Json.net serialization of custom collection implementing IEnumerable