Closed GoogleCodeExporter closed 9 years ago
Hi DZubrilin,
Unfortunately cyclic object graphs is a known issue, and not something easily
solveable. I will accept patches to add this support but due to current time
constraints not something I will look at solving in the very near future.
When I do I will reply back to you on this thread.
Original comment by demis.be...@gmail.com
on 13 Jul 2010 at 11:27
Hi demis,
Thanks for your reactivity.
But why do implement custom serialization logic? There is at least three
build-in serializators in .NET (binary/xml/datacontract).
From my point of view binary serializer with Convert.ToBase64String(...) should
work great in the case. Or maybe I miss something?
Original comment by DZubri...@gmail.com
on 13 Jul 2010 at 12:01
Well, if you check the
[http://www.servicestack.net/benchmarks/NorthwindDatabaseRowsSerialization.10000
00-times.2010-02-06.html benchmarks] the JSV deserializer is both faster and
more compact than all the existing .NET serializers. It can also serialize
non-attributed POCO's with zero-intrusion/config, is a human-readable,
self-describing text serialization format that can withstand large changes to
[MigrationsUsingSchemalessNoSql schema versioning] and supports serializing
advanced constructs like interfaces and
[http://www.servicestack.net/mythz_blog/?p=314 dynamic late-bound objects].
Seriously base64'ing a binary serialization payload is like the worst of all
worlds, slow and unreadable/unversionable and only deserialzable with a
specific version of .NET. Use protobuf-net for a fast interoperable binary
protocol, although I have a preference for simple human-readable text protocols
(kind of like what the Internet is built-on i.e. HTTP/HTML).
For a more in-depth reasoning behind the creation of the new format check out:
http://www.servicestack.net/mythz_blog/?p=176
Hope this explains the reasoning/benefits.
- Demis
Original comment by demis.be...@gmail.com
on 13 Jul 2010 at 12:43
Hello, what is the current status of graph support in ServiceStack
TypeSerializer ? Are references supported ? Are cyclic object graphs handled
correctly ?
Is this support on by default or do I have to turn it on manually ? Are all
types supported ?
Currently I have a class with DataMember attributes with arrays of objects that
contains circular references. It appears TypeSerialiser just gives up after the
top level object?
David
Original comment by dmars...@gmail.com
on 17 Mar 2011 at 3:28
Hi, no I'm sorry cyclical references are not supported.
BTW this project is deprecated and new project is located at:
https://github.com/ServiceStack/ServiceStack.Text
Original comment by demis.be...@gmail.com
on 17 Mar 2011 at 8:57
Original issue reported on code.google.com by
DZubri...@gmail.com
on 13 Jul 2010 at 11:23Attachments: