ChangeLog 8.2 KB

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