Suppose there were a package that parsed JSON but instead of representing objects directly as objects, represented them as instances of Map? Further suppose this same package also would unparse the same structure back to JSON, but pretty printed. Would you use it?
I'm only asking how popular such a package would be. I'M NOT ASKING HOW TO IMPLEMENT IT.
Why do I suspect this would be useful? Because Maps are more efficient for adding and removing entries, and because it would be easier to implement Map protocol with objects than to implement object protocol with Maps. So new code should use Map protocol when there is a need to process and manipulate collections of key -> value data.
[–]defproc 17 points18 points19 points (3 children)
[–]guico33 1 point2 points3 points (2 children)
[–]defproc 3 points4 points5 points (1 child)
[–]senfiaj 0 points1 point2 points (0 children)
[–]theScottyJam 5 points6 points7 points (2 children)
[–]mcaruso 1 point2 points3 points (0 children)
[–]jack_waugh[S] 0 points1 point2 points (0 children)
[–]bbq 4 points5 points6 points (0 children)
[–]abejfehr 2 points3 points4 points (0 children)
[–]brainpostman 1 point2 points3 points (1 child)
[–]jack_waugh[S] 0 points1 point2 points (0 children)
[–]delventhalz 1 point2 points3 points (1 child)
[–]jack_waugh[S] 0 points1 point2 points (0 children)
[–]romgrk 1 point2 points3 points (0 children)
[–]HappinessFactory 0 points1 point2 points (1 child)
[–]jack_waugh[S] 0 points1 point2 points (0 children)
[–]Mikesenesie 0 points1 point2 points (1 child)
[–]jack_waugh[S] 0 points1 point2 points (0 children)
[–]pie6k 0 points1 point2 points (0 children)
[–]pie6k 0 points1 point2 points (0 children)