-
Notifications
You must be signed in to change notification settings - Fork 29
Future of dartson #48
Comments
Great reflection here, @eredo . Happy to discuss alignment, code sharing, etc across dartson and |
Well I was using dartson cause it was familiar to me coming from java world used to jackson. But now I am not on dart for more than year, so don't know how things have changed. |
Thanks @kevmoo ! |
Sounds great!
…On Thu, Mar 1, 2018 at 12:59 AM, Eric Schneller ***@***.***> wrote:
Thanks @kevmoo <https://github.com/kevmoo> !
It sounds like a good idea, to have json_serializable as the basic
serialization solution with no "magic" and dartson on top to provide some
nice to have features. I'll go ahead and make a list of features which are
currently available in both packages and gather some further features from
known libraries of other languages (like jackson, gson, etc...).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABCiox3U99m8BxzXRJaHfS2pcTLa06xks5tZ7hvgaJpZM4SVewB>
.
|
Dartson was the only library that actually worked + quickly and easily given the sample code and it reminded me the most of how Gson from java or Newtonsoft from c# worked. |
dartson is the library used by swagger.io. we currently use it for native (android/ios) and web development so it will be cool to use it on flutter as well!! |
Interesting! Didn't know it was used, but looks like they have also converted from dartson because of flutter support. |
@kevmoo I'm still working on this, but it takes some time because of the lack of free time (tackling the release of our 2.0 software version). There are also some additional proposals which could provide a functionality on top of |
Sounds great!
…On Fri, May 18, 2018 at 11:50 PM Eric Schneller ***@***.***> wrote:
@kevmoo <https://github.com/kevmoo> I'm still working on this, but it
takes some time because of the lack of free time (tackling the release of
our 2.0 software version).
I'm currently getting into the source of json_serializable builder and
write a proposal of how the package could work together based on the
features dartson could ship with.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AABCipRaUzhKNCwSo_9bP4i3u7dhQOq1ks5tz8DKgaJpZM4SVewB>
.
|
To keep you posted. I'm working on a new alpha version, which should support current functionality but requires small amount of builder setup. I'll probably have something released by the weekend. It is using a different approach to |
So first alpha release is out. It ships with the base functionality which was provided in previous dartson versions and because of Big thanks to @kevmoo and all authors of |
You're welcome! 😁
A PR is great. They should be exported from
SGTM! (sounds good to me)
I've gone back and forth with folks on the team about this. I've done a LOT of copy-paste to https://github.com/kevmoo/build_cli that could use some code sharing. Happy to collaborate and even own the shared-bits package. |
@eredo hi, I gather that the little 'codec: json' should automatically call json.decode/encode right? but I still get an error: "Type 'IdentityMap<String, dynamic>' is not a subtype of expected type 'String'. (CastErrorImpl)" edit: Also could you add a .message to the DartsonEntityNotExistsException that says which entities dont exist? |
@Meai1 thanks for the feedback! I'm currently working on the refactoring including proper exception messages. I'm also considering implementing
I was able to reproduce your issue and I am working on a fix ASAP. |
@Meai1 the issue is fixed in 1.0.0-alpha+1 . Please see README.md for the implementation. My previous idea of using |
@eredo I just tried to encode a List and it gives back:
That seems like it worked in the old dartson. |
Indeed! I have this on my todo list. List encoding / decoding doesn't work currently. I'll maybe get something in today. It will be a different method |
@Meai1 Also refactoring is ongoing. Further improvements and adoption of |
To keep you posted. The year is close to it's end and time went by so fast (as always). |
I would like to give an example of a situation when json_serializable wasn't enough for my needs and maybe a package that forks/extends/improves-upon |
There have been great improvements and changes in the dart ecosystem since the first version (0.1.0) of dartson was released in October 2013.
With the latest movement away from mirrors, transformers (barback) and towards code generation there are some great alternatives to dartson including:
https://pub.dartlang.org/packages/json_serializable
https://pub.dartlang.org/packages/built_value
With this in mind I was thinking about the future of dartson with the following points in mind:
I need your support to answer these questions and to make a decision of where to go next with the development of dartson. Therefore I would really appreciate feedback to these questions or any additional input.
The text was updated successfully, but these errors were encountered: