The program is a little better now, but still not great, since we had to manually add a type switch into each and every level of the JSON. This makes the program really hard to maintain and makes it less readable. Having recursion removes this maintenance nightmare and simplifies our lives.

3m read timeFrom codemio.com
Post cover image

Sort: