我试图动态构建我的json,但似乎无法在动态对象中获得结果来存储值: public class CDJson : JObject public string idcdSection.section = new Constants.CDJson() { id = id, style = style, @class = @class };
string json= JsonConvert.SerializeObject(cdSection); // WHERE THE VALUES ARE
当我试图发送Json请求时,它会抛出一个异常。org.codehaus.jackson.map.JsonMappingException: Can not instantiate value of type [simple type, class Transaction] from JSONorigtrans = new ArrayList<Transaction>(); return this.origtrans;我的Json