mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* DataContractJsonSerializer.cs, JsonSerializationWriter.cs: alwaysEmitTypeInformation is false by default. It is for __type attribute, not for type attribute. __type name is always with ":#". * TypeMap.cs : sort members in default typemap (it is ordered). Uncomment EmitDefaultValue. * JsonWriter.cs : handle "null" string (it is somewhat messy). * WebMessageEncoder.cs : use alwaysEmitTypeInformation to output object __type. * DataContractJsonSerializerTest.cs : added test for alwaysEmitTypeInformation argument. svn path=/trunk/mcs/; revision=143748
143 lines
4.8 KiB
Plaintext
143 lines
4.8 KiB
Plaintext
2009-10-08 Atsushi Enomoto <[email protected]>
|
|
|
|
* DataContractJsonSerializer.cs, JsonSerializationWriter.cs:
|
|
alwaysEmitTypeInformation is false by default. It is for __type
|
|
attribute, not for type attribute. __type name is always with ":#".
|
|
* TypeMap.cs : sort members in default typemap (it is ordered).
|
|
Uncomment EmitDefaultValue.
|
|
* JsonWriter.cs : handle "null" string (it is somewhat messy).
|
|
|
|
2009-10-05 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonReader.cs : copy string literal parser from System.Json.
|
|
|
|
2009-09-22 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonSerializationWriter.cs : output "type" attribute on bool
|
|
values too.
|
|
* JsonSerializationReader.cs : type loading attempt was insufficient
|
|
and hence often missed indicated types to deserialize.
|
|
|
|
2009-09-15 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonWriter.cs : use Stream as its output directly and avoid
|
|
extraneous preamble output. Fix interop with .NET.
|
|
|
|
2009-09-07 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonReaderWriterFactory.cs : check null stream (fix test failure).
|
|
|
|
2009-03-13 Andreia Gaita <[email protected]>
|
|
|
|
* JsonReader.cs: fix depth calculation
|
|
|
|
2009-03-12 Geoff Norton <[email protected]>
|
|
|
|
* TypeMap.cs: Avoid checking the getter/setter information until after
|
|
checking if we have the required attribute decorated.
|
|
|
|
2009-03-12 Andreia Gaita <[email protected]>
|
|
|
|
* JsonReaderWriterFactory.cs: try to auto-detect encoding for streams
|
|
without BOM
|
|
|
|
2009-03-02 Chris Toshok <[email protected]>
|
|
|
|
* JsonReader.cs: 2.1 has HasValue.
|
|
|
|
2009-02-02 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonReader.cs : show invalid input character in the error
|
|
message.
|
|
|
|
2009-02-02 Atsushi Enomoto <[email protected]>
|
|
|
|
* TypeMap.cs : in 2.1 do not use non-2.1 CreateInstance().
|
|
|
|
2009-02-02 Atsushi Enomoto <[email protected]>
|
|
|
|
* TypeMap.cs : allow get-only collections. Note that they are not
|
|
always deserializable (in .NET either).
|
|
|
|
2009-02-02 Atsushi Enomoto <[email protected]>
|
|
|
|
* TypeMap.cs : DataContractJsonSerializer in RTM does not seem to
|
|
reject contract-less types. So populate map for public members.
|
|
* DataContractJsonSerializer.cs : close XmlWriter to flush stream
|
|
(and it closes the stream by default).
|
|
|
|
2009-02-02 Andreia Gaita <[email protected]>
|
|
|
|
* JsonSerializationReader.cs : Use 2.1 "approved" calls for Enum.Parse
|
|
and Convert.ChangeType
|
|
|
|
2008-02-18 Atsushi Enomoto <[email protected]>
|
|
|
|
* DataContractJsonSerializer.cs : IsStartObject() could raise
|
|
an arbitrary exception, so wrap it inside try-catch too to enclose
|
|
with SerializationException.
|
|
* JsonSerializationReader.cs : support DBNull.
|
|
|
|
2008-01-30 Atsushi Enomoto <[email protected]>
|
|
|
|
* DataContractJsonSerializer.cs : fixed .ctor(type, knonwTypes) that
|
|
missed to delegate knownTypes correctly.
|
|
* JsonSerializationReader.cs : consider KnownTypes correctly.
|
|
Take "__type" fully into consideration, not just for arrays.
|
|
|
|
2008-01-30 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonReader.cs : GetAttribute() was not still missing support for
|
|
__type.
|
|
|
|
2008-01-30 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonReader.cs : now __type is fully supported in every methods and
|
|
properties in correct shape.
|
|
|
|
2008-01-30 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonReader.cs : Do not consume "__type" (which is the first content
|
|
of an object) as an element content. It must be handled as an
|
|
attribute (it needs more changes).
|
|
|
|
2008-01-24 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonSerializationReader.cs : when deserializing primitive strings,
|
|
make use of "type" attribute (they are supposed to exist).
|
|
Output source reader location if available.
|
|
* JsonReader.cs : implement IXmlLineInfo.
|
|
|
|
2008-01-24 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonSerializationReader.cs : new, for JSON deserialization support.
|
|
* DataContractJsonSerializer.cs, TypeMap.cs :
|
|
basic support for deserialization.
|
|
|
|
2008-01-24 Atsushi Enomoto <[email protected]>
|
|
|
|
* DataContractJsonSerializer.cs,
|
|
TypeMap.cs,
|
|
JsonSerializationWriter.cs : split the first to those three files.
|
|
|
|
2008-01-24 Atsushi Enomoto <[email protected]>
|
|
|
|
* DataContractJsonSerializer.cs : Uri and Guid are serialized as
|
|
string. XmlQualifiedName is serialized as local:ns.
|
|
|
|
2008-01-22 Atsushi Enomoto <[email protected]>
|
|
|
|
* JsonWriter.cs : allow __type attribute. It required couple of
|
|
changes all around the class.
|
|
* DataContractJsonSerializer.cs : implemented large part of
|
|
serialization support (deserialization is not done yet).
|
|
|
|
2007-12-05 Atsushi Enomoto <[email protected]>
|
|
|
|
* DataContractJsonSerializer.cs :
|
|
moved from System.Runtime.Serialization and changed the namespace.
|
|
* JsonReader.cs, JsonWriter.cs, JsonReaderWriterFactory.cs,
|
|
IXmlJsonReaderInitializer.cs, IXmlJsonWriterInitializer.cs :
|
|
moved from System.Xml and changed the namespace.
|
|
|