English 中文(简体)
在 UI 中显示 json - 缩进正确的日期时间
原标题:Show json in UI - indented with correct date time

我怎样才能以适当的缩写方式用json格式显示一些文字?

我使用Json.NET,我用缩进保存了数据,现在我想在我的UI中显示这些数据。

我发的短信是:

{“权限”:39,“名称”:“农业-托儿所”,“添加日期”:“/Date(13 378666574143+0100)”,“DateRemoved”:“/Date(133794276762894+0100)”,“现状”:“主动”}}}

note 我只是从数据库读取并丢弃它

问题:以正确格式,例如2011年6月18日,显示json与日期的缩缩

最佳回答

RTFM:http://james.newtonking.com/projects/json/help/

见:

  • Serializing and Deserializing JSON / Serialization Settings / DateFormatHandling
  • Reading and Writing JSON / JsonTextWriter
问题回答

暂无回答




相关问题
Linq - 2 tables - Sum

Asiento ******** Id_Asiento integer key Fecha date It_Asiento ********** Id_Asiento integer Forenkey Importe float I wan to do This SQL Query with Linq select Asiento.Id_Asiento, ...

Threading and un-safe variables

I have code listed here: Threading and Sockets. The answer to that question was to modify isListening with volatile. As I remarked, that modifier allowed me to access the variable from another thread....

How to cancel an asynchronous call?

How to cancel an asynchronous call? The .NET APM doesn t seem to support this operation. I have the following loop in my code which spawns multiple threads on the ThreadPool. When I click a button on ...

热门标签