How to parse a json node that contains children of different types?
Steven Schveighoffer
schveiguy at gmail.com
Wed Jul 21 13:56:28 UTC 2021
On 7/20/21 11:00 PM, Mathias LANG wrote:
> But if you take a step back, I think you might find this solution is far
> from ideal.
> Having worked on a JSON library myself, I can tell you they are all
> implemented with a tagged union. And converting a tagged union to a
> tagged union is no improvement.
Not [jsoniopipe](https://github.com/schveiguy/jsoniopipe). In that case,
you could use a specialized type with a `fromJSON` static member to do
whatever you wanted.
-Steve
More information about the Digitalmars-d-learn
mailing list