Seen some ideas in other posts, but could not get rid of the Key Value text in my json string. Have a bunch of options built in code to pass to the FLOT javascript graphing app. Dictionary type items, is giving me an issue.
Using .Net 4.0, so don't have the newer DataContractJsonSerializer.
[DataContract]
public class MyOptions
{
[DataMember(Name = "data", EmitDefaultValue = false)]
public List<KeyValuePair<string, string>> SeriesData { get; set; }
}
Output example:
{"data":[{"key":"ooo1","value":"ppp1"},{"key":"ooo2","value":"ppp2"},{"key":"o oo3","value":"ppp3"}]}
What i need
{"data":[["ooo1","ppp1"],["ooo2","ppp2"],["ooo3","ppp3"]]}