官术网_书友最值得收藏!

Object type standardization

Whether you are using custom binary serialization, JSON, or JSON-RPC you need to think about how your user is going to handle the object at the other side of the transaction. Many of the serialization packages Protocol Buffers such as protocol buffers and Thrift that use stubs to generate client code will happily deal with serialization of simple types such as Dates into native types that enable your consumer to easily use and manipulate these objects. However, if you are using JSON or JSON-RPC there is no concept of a Date as a native type therefore it can be useful to fall back to ISO standards which the user of the client can easily deserialize. The Microsoft API design guidelines provide some good advice on how to handle Dates and Durations.

主站蜘蛛池模板: 泸水县| 青神县| 阿瓦提县| 佛冈县| 宁强县| 观塘区| 东丽区| 彩票| 林周县| 遂平县| 宜章县| 牡丹江市| 廊坊市| 永登县| 宁南县| 灌云县| 新营市| 万源市| 新兴县| 临猗县| 拉孜县| 启东市| 象州县| 隆化县| 吴川市| 宜兰市| 新巴尔虎右旗| 滦南县| 即墨市| 开阳县| 永寿县| 祁门县| 北流市| 平邑县| 酒泉市| 隆尧县| 丰县| 启东市| 广昌县| 秭归县| 岳阳县|