2
0

ChangeLog 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. 2010-07-06 Atsushi Enomoto <[email protected]>
  2. * JsonSerializationWriter.cs : it cannot serialize DateTime in
  3. double, which causes crash in deserializer.
  4. 2010-07-06 Atsushi Enomoto <[email protected]>
  5. * TypeMap.cs : when an object is null, return null, not just an
  6. uninitialized object.
  7. 2010-07-06 Atsushi Enomoto <[email protected]>
  8. * DataContractJsonSerializer_2_1.cs : add extra methods for
  9. Sys.SM.Web.Extensions build.
  10. 2010-07-06 Atsushi Enomoto <[email protected]>
  11. * JsonReader.cs : do not keep Attribute state once Read() is called.
  12. 2010-04-24 Atsushi Enomoto <[email protected]>
  13. * JsonSerializationReader.cs : use List<T> if the contract member
  14. type is interface.
  15. 2010-03-16 Jb Evain <[email protected]>
  16. * DataContractJsonSerializer.cs: use MOONLIGHT symbol to
  17. disambiguate MonoTouch and Moonlight code.
  18. 2010-03-13 Kornél Pál <[email protected]>
  19. * JavaScriptReader.cs: Deserialize "false" correctly.
  20. Fixed bug #586712.
  21. 2010-03-10 Atsushi Enomoto <[email protected]>
  22. * JavaScriptReader.cs : moved from Sys.Json/JsonReader.cs.
  23. 2010-03-10 Atsushi Enomoto <[email protected]>
  24. * JavaScriptObjectDeserializer.cs : new internal file, which is
  25. used by System.Json (for moonlight compatibility).
  26. 2010-03-09 Atsushi Enomoto <[email protected]>
  27. * JsonSerializationWriter.cs, JsonSerializationReader.cs,
  28. JsonWriter.cs : Fix DateTime serialization and "\/" string escape
  29. issues. Fixed bug #586169.
  30. 2010-02-24 Atsushi Enomoto <[email protected]>
  31. * JsonWriter.cs : write NaN, INF, -INF as JSON string, not JSON number.
  32. Fixed bug #573691.
  33. 2010-01-27 Atsushi Enomoto <[email protected]>
  34. * DataContractJsonSerializer.cs : KnownTypes does not include root
  35. type. Fixed bug #573689.
  36. 2010-01-27 Atsushi Enomoto <[email protected]>
  37. * JsonSerializationReader.cs : oops, wrong fix, should consume the
  38. reader.
  39. 2010-01-27 Atsushi Enomoto <[email protected]>
  40. * JsonSerializationReader.cs : "null" for string should be read as
  41. null, not String.Empty. Fixed bug #573690.
  42. 2010-01-26 Sebastien Pouliot <[email protected]>
  43. * DataContractJsonSerializer_2_1.cs: Don't hide [Field|Method]
  44. AccessException inside a SerializationException but in a
  45. SecurityException.
  46. 2010-01-25 Sebastien Pouliot <[email protected]>
  47. * DataContractJsonSerializer_2_1.cs: New. Simpler version for
  48. Moonlight since it does not inherit from the same base type nor
  49. does it overrides any base methods.
  50. 2010-01-08 Atsushi Enomoto <[email protected]>
  51. * TypeMap.cs : forward port r145077 (see change line for 2009-10-29).
  52. 2009-12-14 Atsushi Enomoto <[email protected]>
  53. * TypeMap.cs : handle [Serializable] objects such as KeyValuePair<,>
  54. like we do in 2.0. Removed previous workarounds. (Do not serialize
  55. and deserialize nonpublic members in "default" mappings.)
  56. 2009-12-11 Chris Toshok <[email protected]>
  57. * TypeMap.cs (CreateDefaultTypeMap): only include non-public
  58. property info when dealing with KeyValuePair<,>. This is *not*
  59. the way MS handles it, but we emulate things much better with this
  60. hack.
  61. 2009-12-11 Atsushi Enomoto <[email protected]>
  62. * JsonReader.cs : e- and e+ was resulting in wrong parse error.
  63. This should fix part of bug #531904.
  64. 2009-12-08 Chris Toshok <[email protected]>
  65. * JsonSerializationReader.cs (DeserializeGenericCollection): in
  66. the 2.1 case we still need to convert the List<> to an array.
  67. 2009-12-07 Chris Toshok <[email protected]>
  68. * JsonReaderWriterFactory.cs (CreateJsonReader): pass null for the
  69. encoding parameter instead of calling Detect. The jsonreader's
  70. PushbackReader will autodetect.
  71. (Detect): remove. a BufferedStream created from an unseekable
  72. stream is itself unseekable, which makes it just as useless. This
  73. breaks netflix's isostore file parsing.
  74. * JsonReader.cs (PushbackReader): add a ctor which doesn't take an
  75. encoding, for the autodetecting reader case. for this ctor, pass
  76. true to StreamReader's ctor for detectEncodingFromByteOrderMarks.
  77. 2009-12-06 Chris Toshok <[email protected]>
  78. * JsonSerializationReader.cs (DeserializeGenericCollection): this
  79. is jb's (iirc) patch, actually. Types subclassing from
  80. ICollection<T> need to be supported, and since it's an interface
  81. the implementation might be explicit. So instead of groveling
  82. around in the actual type, we need to dispatch through the
  83. interface's method.
  84. * TypeMap.cs (CreateDefaultTypeMap): we need to include non-public
  85. properties, since KeyValuePair items must be able to write to Key
  86. and Value properties.
  87. * JsonReader.cs (ReadContent): for builtin values (null, true,
  88. false), use TryReadString instead of individual ReadChar's, since
  89. they aren't reversible if the string didn't match. In the default
  90. case, if we're LameSilverlightLiseralParser, we need to push back
  91. the current character onto the stream -- this is because for
  92. netflix's AppConfig.json we were parsing "frameRatePolicy" as
  93. "rameRatePolicy" (the 'f' was triggering the "false" parsing).
  94. (class PushBackReader): add this class to unify all the pushing
  95. back of characters we need to do. 1 character (JsonReader's old
  96. "saved_char") isn't enough given that you could have a property
  97. named, e.g., "falsifiable", and we'd need 4 characters worth of
  98. pushback to recognize that correctly.
  99. 2009-11-20 Atsushi Enomoto <[email protected]>
  100. * DataContractJsonSerializer.cs, JsonReader.cs : Silverlight uses
  101. LAME parser that allows object member name as *raw* string
  102. without double-quotes. (This also reverts the previous change.)
  103. 2009-11-12 Atsushi Enomoto <[email protected]>
  104. * JsonSerializationReader.cs : reuse generic collection search
  105. logic in KnownTypeCollection.cs. Fixed bug #551671.
  106. 2009-10-30 Andreia Gaita <[email protected]>
  107. * DataContractJsonSerializer.cs: SL accepts keys without "", so tweak
  108. the data to fix the quotes before passing it to the deserializer
  109. 2009-10-29 Chris Toshok <[email protected]>
  110. * TypeMap.cs (Deserialize): use
  111. FormatterServices.GetUninitializedObject instead of
  112. Activator.CreateInstance, since we shouldn't be invoking the
  113. default ctor.
  114. (forward ported to trunk on 2010-01-08 by atsushi)
  115. 2009-10-23 Atsushi Enomoto <[email protected]>
  116. * DataContractJsonSerializer.cs
  117. TypeMap.cs
  118. JsonSerializationReader.cs : add experimental monotouch build.
  119. 2009-10-08 Atsushi Enomoto <[email protected]>
  120. * DataContractJsonSerializer.cs, JsonSerializationWriter.cs:
  121. alwaysEmitTypeInformation is false by default. It is for __type
  122. attribute, not for type attribute. __type name is always with ":#".
  123. * TypeMap.cs : sort members in default typemap (it is ordered).
  124. Uncomment EmitDefaultValue.
  125. * JsonWriter.cs : handle "null" string (it is somewhat messy).
  126. 2009-10-05 Atsushi Enomoto <[email protected]>
  127. * JsonReader.cs : copy string literal parser from System.Json.
  128. 2009-09-22 Atsushi Enomoto <[email protected]>
  129. * JsonSerializationWriter.cs : output "type" attribute on bool
  130. values too.
  131. * JsonSerializationReader.cs : type loading attempt was insufficient
  132. and hence often missed indicated types to deserialize.
  133. 2009-09-15 Atsushi Enomoto <[email protected]>
  134. * JsonWriter.cs : use Stream as its output directly and avoid
  135. extraneous preamble output. Fix interop with .NET.
  136. 2009-09-07 Atsushi Enomoto <[email protected]>
  137. * JsonReaderWriterFactory.cs : check null stream (fix test failure).
  138. 2009-03-13 Andreia Gaita <[email protected]>
  139. * JsonReader.cs: fix depth calculation
  140. 2009-03-12 Geoff Norton <[email protected]>
  141. * TypeMap.cs: Avoid checking the getter/setter information until after
  142. checking if we have the required attribute decorated.
  143. 2009-03-12 Andreia Gaita <[email protected]>
  144. * JsonReaderWriterFactory.cs: try to auto-detect encoding for streams
  145. without BOM
  146. 2009-03-02 Chris Toshok <[email protected]>
  147. * JsonReader.cs: 2.1 has HasValue.
  148. 2009-02-02 Atsushi Enomoto <[email protected]>
  149. * JsonReader.cs : show invalid input character in the error
  150. message.
  151. 2009-02-02 Atsushi Enomoto <[email protected]>
  152. * TypeMap.cs : in 2.1 do not use non-2.1 CreateInstance().
  153. 2009-02-02 Atsushi Enomoto <[email protected]>
  154. * TypeMap.cs : allow get-only collections. Note that they are not
  155. always deserializable (in .NET either).
  156. 2009-02-02 Atsushi Enomoto <[email protected]>
  157. * TypeMap.cs : DataContractJsonSerializer in RTM does not seem to
  158. reject contract-less types. So populate map for public members.
  159. * DataContractJsonSerializer.cs : close XmlWriter to flush stream
  160. (and it closes the stream by default).
  161. 2009-02-02 Andreia Gaita <[email protected]>
  162. * JsonSerializationReader.cs : Use 2.1 "approved" calls for Enum.Parse
  163. and Convert.ChangeType
  164. 2008-02-18 Atsushi Enomoto <[email protected]>
  165. * DataContractJsonSerializer.cs : IsStartObject() could raise
  166. an arbitrary exception, so wrap it inside try-catch too to enclose
  167. with SerializationException.
  168. * JsonSerializationReader.cs : support DBNull.
  169. 2008-01-30 Atsushi Enomoto <[email protected]>
  170. * DataContractJsonSerializer.cs : fixed .ctor(type, knonwTypes) that
  171. missed to delegate knownTypes correctly.
  172. * JsonSerializationReader.cs : consider KnownTypes correctly.
  173. Take "__type" fully into consideration, not just for arrays.
  174. 2008-01-30 Atsushi Enomoto <[email protected]>
  175. * JsonReader.cs : GetAttribute() was not still missing support for
  176. __type.
  177. 2008-01-30 Atsushi Enomoto <[email protected]>
  178. * JsonReader.cs : now __type is fully supported in every methods and
  179. properties in correct shape.
  180. 2008-01-30 Atsushi Enomoto <[email protected]>
  181. * JsonReader.cs : Do not consume "__type" (which is the first content
  182. of an object) as an element content. It must be handled as an
  183. attribute (it needs more changes).
  184. 2008-01-24 Atsushi Enomoto <[email protected]>
  185. * JsonSerializationReader.cs : when deserializing primitive strings,
  186. make use of "type" attribute (they are supposed to exist).
  187. Output source reader location if available.
  188. * JsonReader.cs : implement IXmlLineInfo.
  189. 2008-01-24 Atsushi Enomoto <[email protected]>
  190. * JsonSerializationReader.cs : new, for JSON deserialization support.
  191. * DataContractJsonSerializer.cs, TypeMap.cs :
  192. basic support for deserialization.
  193. 2008-01-24 Atsushi Enomoto <[email protected]>
  194. * DataContractJsonSerializer.cs,
  195. TypeMap.cs,
  196. JsonSerializationWriter.cs : split the first to those three files.
  197. 2008-01-24 Atsushi Enomoto <[email protected]>
  198. * DataContractJsonSerializer.cs : Uri and Guid are serialized as
  199. string. XmlQualifiedName is serialized as local:ns.
  200. 2008-01-22 Atsushi Enomoto <[email protected]>
  201. * JsonWriter.cs : allow __type attribute. It required couple of
  202. changes all around the class.
  203. * DataContractJsonSerializer.cs : implemented large part of
  204. serialization support (deserialization is not done yet).
  205. 2007-12-05 Atsushi Enomoto <[email protected]>
  206. * DataContractJsonSerializer.cs :
  207. moved from System.Runtime.Serialization and changed the namespace.
  208. * JsonReader.cs, JsonWriter.cs, JsonReaderWriterFactory.cs,
  209. IXmlJsonReaderInitializer.cs, IXmlJsonWriterInitializer.cs :
  210. moved from System.Xml and changed the namespace.