

Why not both?



Why not both?

I too, am confused.
I agree with some of the points made in the article, but I think a reason JSON won it is that it is directly representable in many languages. As the author mentions, JSON makes dictionaries, which has native types in most, if not all, languages I have used and languages like JS/TS and Python have native support for JSON.
So interpreting a JSON string is easier and doesn’t necessitate a custom type, while allowing for it. Both TS and Python (3) do have static analysis and type checking for JSON, with some limitations.
The final point I feel the other missed is that JSON and by extension YAML is more concise and therefore more readable, even in a terminal or console where syntax highlighting might not be available. In my experience the speed at which humans kan parse DTOs increase troubleshooting and development.
That said they do mention several use cases where I agree that XML is a better tool, but I still believe that JSON is the better general purpose tool. If your model for DTOs is tight and well defined XML may well be the better option and JSON does have some significant drawbacks, but not enough that I would start my project out using XML unless I know I will need to compose XML files or enforce strict type checking.
In my, albeit limited, experience using XML the time saved on type checking DTOs is spent on writing and maintaining serializers and deserializers. Thus the benefit of one tool over the other depends on the use case.


I feel like I am mission6 some context. The Trump pedo connection is obvious, but is she a pedo women for protecting him or did something more sinister come to light?


What does self-determination mean in this context?
I only casually follow SC2 eSports anymore. What does IMBA mean this context?
It’s a 40k reference


Are you saying nothing new is produced/invented in China? They publish plenty of scientific papers and develop plenty of things, so I am a but unsure of what you mean


Removed by mod


Can’t make this shit up


Huh, very interesting!


Are persimmons and crabs poisonous or was Yeongjo accused of poisoning the food?
Context : King Yeongjo was accused of assassinating his brother with crab and persimmons to become next king. Is a bit unclear on this detail


Please do, or kick them out. It is fair to expect some level of alignment as requirement for membership


Thanks for context
Just lacking context in general. I do not understand why the comment about boxes causes the throwing of panties.


What the fuck? Is this a joke or is this implying that fathers abuse their daughters?
What an idiot.