asdf json library moved to libmir

yawniek yawniek at srtnwz.com
Fri Jul 13 09:11:33 UTC 2018


On Wednesday, 11 July 2018 at 22:21:32 UTC, Daniel Kozak wrote:

> I have tried it few days ago and it does not work for me at  
> first. Because
> I always read only "Simple Example".
> One of my problem was that I have a struct with little 
> different name that
> was attribute name used in
> json (positions and types has been correct), but it does not 
> work and the
> error was really wierd so it took
> me a while until I have found out what was wrong.
>
> Other problem was with types when one json attribute can be a 
> number or null

Asdf was actually exactly created for this use case.
You can do transformations when reading and writing.
Also the null case is handled via different tools, please read 
the Readme and look into the API.

If there is an use case that you seem not to be able to pull of, 
please file a ticket.


More information about the Digitalmars-d-announce mailing list