Giter VIP home page Giter VIP logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
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 [email protected] on 13 Jul 2010 at 11:27

  • Changed state: Accepted

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
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 [email protected] on 13 Jul 2010 at 12:01

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
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 [email protected] on 13 Jul 2010 at 12:43

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
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 [email protected] on 17 Mar 2011 at 3:28

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
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 [email protected] on 17 Mar 2011 at 8:57

  • Changed state: WontFix

from servicestack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.