1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253
|
2010-01-26 Sebastien Pouliot <sebastien@ximian.com>
* DataContractJsonSerializer_2_1.cs: Don't hide [Field|Method]
AccessException inside a SerializationException but in a
SecurityException.
[Backport r150219]
2010-01-25 Sebastien Pouliot <sebastien@ximian.com>
* DataContractJsonSerializer_2_1.cs: New. Simpler version for
Moonlight since it does not inherit from the same base type nor
does it overrides any base methods.
[Backport r150149]
2010-01-08 Atsushi Enomoto <atsushi@ximian.com>
* TypeMap.cs : forward port r145077 (see change line for 2009-10-29).
2009-12-14 Atsushi Enomoto <atsushi@ximian.com>
* TypeMap.cs : handle [Serializable] objects such as KeyValuePair<,>
like we do in 2.0. Removed previous workarounds. (Do not serialize
and deserialize nonpublic members in "default" mappings.)
2009-12-11 Chris Toshok <toshok@ximian.com>
* TypeMap.cs (CreateDefaultTypeMap): only include non-public
property info when dealing with KeyValuePair<,>. This is *not*
the way MS handles it, but we emulate things much better with this
hack.
2009-12-11 Atsushi Enomoto <atsushi@ximian.com>
* JsonReader.cs : e- and e+ was resulting in wrong parse error.
This should fix part of bug #531904.
2009-12-08 Chris Toshok <toshok@ximian.com>
* JsonSerializationReader.cs (DeserializeGenericCollection): in
the 2.1 case we still need to convert the List<> to an array.
2009-12-07 Chris Toshok <toshok@ximian.com>
* JsonReaderWriterFactory.cs (CreateJsonReader): pass null for the
encoding parameter instead of calling Detect. The jsonreader's
PushbackReader will autodetect.
(Detect): remove. a BufferedStream created from an unseekable
stream is itself unseekable, which makes it just as useless. This
breaks netflix's isostore file parsing.
* JsonReader.cs (PushbackReader): add a ctor which doesn't take an
encoding, for the autodetecting reader case. for this ctor, pass
true to StreamReader's ctor for detectEncodingFromByteOrderMarks.
2009-12-06 Chris Toshok <toshok@ximian.com>
* JsonSerializationReader.cs (DeserializeGenericCollection): this
is jb's (iirc) patch, actually. Types subclassing from
ICollection<T> need to be supported, and since it's an interface
the implementation might be explicit. So instead of groveling
around in the actual type, we need to dispatch through the
interface's method.
* TypeMap.cs (CreateDefaultTypeMap): we need to include non-public
properties, since KeyValuePair items must be able to write to Key
and Value properties.
* JsonReader.cs (ReadContent): for builtin values (null, true,
false), use TryReadString instead of individual ReadChar's, since
they aren't reversible if the string didn't match. In the default
case, if we're LameSilverlightLiseralParser, we need to push back
the current character onto the stream -- this is because for
netflix's AppConfig.json we were parsing "frameRatePolicy" as
"rameRatePolicy" (the 'f' was triggering the "false" parsing).
(class PushBackReader): add this class to unify all the pushing
back of characters we need to do. 1 character (JsonReader's old
"saved_char") isn't enough given that you could have a property
named, e.g., "falsifiable", and we'd need 4 characters worth of
pushback to recognize that correctly.
2009-11-20 Atsushi Enomoto <atsushi@ximian.com>
* DataContractJsonSerializer.cs, JsonReader.cs : Silverlight uses
LAME parser that allows object member name as *raw* string
without double-quotes. (This also reverts the previous change.)
2009-11-12 Atsushi Enomoto <atsushi@ximian.com>
* JsonSerializationReader.cs : reuse generic collection search
logic in KnownTypeCollection.cs. Fixed bug #551671.
2009-10-30 Andreia Gaita <avidigal@novell.com>
* DataContractJsonSerializer.cs: SL accepts keys without "", so tweak
the data to fix the quotes before passing it to the deserializer
2009-10-29 Chris Toshok <toshok@ximian.com>
* TypeMap.cs (Deserialize): use
FormatterServices.GetUninitializedObject instead of
Activator.CreateInstance, since we shouldn't be invoking the
default ctor.
(forward ported to trunk on 2010-01-08 by atsushi)
2009-10-23 Atsushi Enomoto <atsushi@ximian.com>
* DataContractJsonSerializer.cs
TypeMap.cs
JsonSerializationReader.cs : add experimental monotouch build.
2009-10-08 Atsushi Enomoto <atsushi@ximian.com>
* 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 <atsushi@ximian.com>
* JsonReader.cs : copy string literal parser from System.Json.
2009-09-22 Atsushi Enomoto <atsushi@ximian.com>
* 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 <atsushi@ximian.com>
* JsonWriter.cs : use Stream as its output directly and avoid
extraneous preamble output. Fix interop with .NET.
2009-09-07 Atsushi Enomoto <atsushi@ximian.com>
* JsonReaderWriterFactory.cs : check null stream (fix test failure).
2009-03-13 Andreia Gaita <avidigal@novell.com>
* JsonReader.cs: fix depth calculation
2009-03-12 Geoff Norton <gnorton@novell.com>
* TypeMap.cs: Avoid checking the getter/setter information until after
checking if we have the required attribute decorated.
2009-03-12 Andreia Gaita <avidigal@novell.com>
* JsonReaderWriterFactory.cs: try to auto-detect encoding for streams
without BOM
2009-03-02 Chris Toshok <toshok@ximian.com>
* JsonReader.cs: 2.1 has HasValue.
2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
* JsonReader.cs : show invalid input character in the error
message.
2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
* TypeMap.cs : in 2.1 do not use non-2.1 CreateInstance().
2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
* TypeMap.cs : allow get-only collections. Note that they are not
always deserializable (in .NET either).
2009-02-02 Atsushi Enomoto <atsushi@ximian.com>
* 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 <avidigal@novell.com>
* JsonSerializationReader.cs : Use 2.1 "approved" calls for Enum.Parse
and Convert.ChangeType
2008-02-18 Atsushi Enomoto <atsushi@ximian.com>
* 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 <atsushi@ximian.com>
* 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 <atsushi@ximian.com>
* JsonReader.cs : GetAttribute() was not still missing support for
__type.
2008-01-30 Atsushi Enomoto <atsushi@ximian.com>
* JsonReader.cs : now __type is fully supported in every methods and
properties in correct shape.
2008-01-30 Atsushi Enomoto <atsushi@ximian.com>
* 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 <atsushi@ximian.com>
* 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 <atsushi@ximian.com>
* JsonSerializationReader.cs : new, for JSON deserialization support.
* DataContractJsonSerializer.cs, TypeMap.cs :
basic support for deserialization.
2008-01-24 Atsushi Enomoto <atsushi@ximian.com>
* DataContractJsonSerializer.cs,
TypeMap.cs,
JsonSerializationWriter.cs : split the first to those three files.
2008-01-24 Atsushi Enomoto <atsushi@ximian.com>
* DataContractJsonSerializer.cs : Uri and Guid are serialized as
string. XmlQualifiedName is serialized as local:ns.
2008-01-22 Atsushi Enomoto <atsushi@ximian.com>
* 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 <atsushi@ximian.com>
* 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.
|