Comments (2)
Different formats is certainly a possibility.
In particular if there's a standard format that's powerful enough it would definitely make sense to add it. The problem is what to do when you don't know ahead of time the type you're deserializing, for example the test "BuiltMap with object keys" here:
Then we need some way of encoding the name of the type as well as the contents.
An alternative would be to say "you can only use this serialization method when you know all the types fully" ... but then, that would hopefully only be used for iterop. I think it's quite important to allow flexibility in precisely which types you're serializing -- that's what allows it to serialize object models.
Thoughts?
from built_json.dart.
Moved this issue here: google/built_value.dart#65
from built_json.dart.
Related Issues (20)
- Support serializing nullable fields. HOT 1
- Investigate genericType strictness in serializers
- Possible to use transformers? HOT 2
- Show an error if serializer declaration points to wrong instance HOT 1
- Deserialization code has unused value when there are no fields HOT 1
- Deserialization code should use iterator HOT 1
- Properly detect transitive dependencies. HOT 1
- allow non-concrete serialized types provided all implementations are serializable HOT 2
- Doesn't cope with null value in nullable field HOT 3
- Typo in source_field.dart: MapBuiler HOT 1
- Fix warnings about 'Object'. HOT 1
- the package is not compatible with quiver 0.22.0 HOT 5
- chat example: add dev_dependency on source_gen and build HOT 1
- chat example: readme says server is at "localhost:26199" HOT 2
- BuiltJsonSerializer(s) can probably have shorter names HOT 1
- Null error on deserialize with nested builders HOT 1
- Don't write nulls
- Nicer deserializer format HOT 8
- Add serializer context HOT 1
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 built_json.dart.