Comments (5)
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.
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.
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.
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.
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)
- Serializing byte[] cannot be Deserialized.
- CreateTransaction failing HOT 1
- TypeInitializationException when a class have a property that return an XElement value
- TypeInitializationException when deserialiaze a string to a class that have a static property
- Priority of Web Sockets HOT 1
- How to Store values in session
- Implement Forms Authentication Using ServiceStack HOT 1
- OrmPostgreSQL HOT 1
- Supporting for redis ZCOUNT command
- WCF helper implementation
- Null reference exception on call to GetAll HOT 2
- Broken link on Project Home HOT 2
- DeSerialising dictionary with type Dictionary<Tuple<string,string>,double>>() does not work
- Wrong Encoding
- ServiceStack.Redis reading large files from Redis server
- ServiceStack.Redis.RedisResponseException
- Db number is fogotten when using pooled clients.
- SOAP request and response wrappers
- Tutorial references ServiceStackHttpHandlerFactory which isn't included in ServiceStack.dll
- Future roadmap suggestion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servicestack.