XML vs JSON

JSON advantages
  • Shorter syntax when parent nodes have identifiers that are sufficiently long.
  • Specialized syntax that suggests where booleans, lists and numbers are more likely to be appropriate
  • Less complicated escaping rules. Compare " and & with "\"" and "\\"
XML advantages
  • Native newline support for text childs
  • Special escape syntax for code containing charactesr which conflict with other parts of the syntax(CDATA)
08/28/2020 alan 1 Comment
Uncategorized