當前位置:
                    首頁 >
                            前端技术
>                            javascript
>内容正文                
                        
                    javascript
ServiceStack.Text反序列化lowercase_underscore_names格式的JSON
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                ServiceStack.Text反序列化lowercase_underscore_names格式的JSON
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                ?
代碼:
1 [Test] 2 public void Test() 3 { 4 JsConfig.PropertyConvention = JsonPropertyConvention.Lenient; 5 var json ="{\"result\":\"0\",\"result_string\":\"成功\"}"; 6 var resp = json.FromJson<PayResp>(); 7 Console.WriteLine(resp.ResultString); 8 }?
總結
以上是生活随笔為你收集整理的ServiceStack.Text反序列化lowercase_underscore_names格式的JSON的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: SVG 动画实现弹性的页面元素效果
 - 下一篇: 【SharePoint 2010】将Sh