jayrock

Json Import fails - C#

I have the following class structure public class AreaFields { public List<Fields> Fields { set; get; } } public class Fields { public string Name { set; get; } public string Value {set; get; } } When I export to Json using Jayrock.Json.Conversion.JsonConvert.ExportToString(List<AreaField> obj), everything works fine. The...

jqGrid - How does one configure jsonreader (for use with Jayrock)?

Hi, I wondered if someone might have some insight into this. jqGrid is quite happy with this JSON string: {'page':'1','total':1,'records':'4','rows':[{'id':1,'title':'Story Manager','assigned':'2009-06-22T10:52:28.0687738-05:00','due':'2009-07-29T10:52:28.0687738-05:00','completed':'2009-07-14T10:52:28.0687738-05:00'},{'id':2,'title':'...

Why doesn't Jayrock (.NET JSON-RPC Framework) like my request?

Hi quick question about Jayrock... I have a Jayrock JSON-RPC web service that generally works fine. However, when I try to post to my jqGrid editUrl, Jayrock throws an error. The web service works fine in other situations. Anyone have a clue why Jayrock doesn't like the following request? Perhaps a way to configure Jayrock to accept...

.NET Libraries to work with JSON

Hi, We are currently writing our ASP.NET pages using c# and .NET 2.0 framework and we are about 4 months out from upgrading to .NET 3.5 framework. Meanwhile we have a very client-side JS heavy page to push out in 2 months. We are currently looking at JayRock to handle our client-to-server service methods invoking with JSON data. One of...

JSON String formed improperly using JayRock in .Net

I am trying to return a JSON object from an aspx page using JayRock.JSON. My code for writing it out is this: using (JsonTextWriter writer = new JsonTextWriter(Response.Output)) { writer.WriteStartObject(); for (int i = 0; i < rdr.FieldCount; i++) { writer.WriteMember(rdr.GetName(i).ToString()); ...