Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which has the most mature stable libraries for multiple languages available for it, YAML or JSON?

Tags:

json

yaml

I'm not looking for a comparison of the relative merits of YAML or JSON over each other, I'm purely looking for something that is supported by many languages and has stable implementations.

Also another plus would be to know which has the libraries that do not have huge dependency trees requiring other libraries.

like image 440
yazz.com Avatar asked Mar 06 '10 14:03

yazz.com


3 Answers

Both YAML and JSON have stable libraries for many different languages and all of the most popular languages have good support for both. JSON is the simplest of the two to implement so it has slightly more support.

If you want to get a very rough idea of stable language support you can compare the lists of the libraries linked from the official homepages:

YAML

  • C/C++
  • Java
  • Python
  • Ruby
  • Perl Modules
  • C#/.NET
  • PHP
  • OCaml
  • Javascript
  • Actionscript
  • Haskell

JSON

  • ASP
  • ActionScript
  • C
  • C++
  • C#
  • ColdFusion
  • D
  • Delphi
  • E
  • Eiffel
  • Erlang
  • Fantom
  • Flex
  • Go
  • Haskell
  • Haxe
  • Java
  • JavaScript
  • Lasso
  • Lisp
  • LotusScript
  • Lua
  • Objective C
  • Objective CAML
  • OpenLaszlo
  • Perl
  • PHP
  • Pike
  • PL/SQL
  • PowerShell
  • Prolog
  • Python
  • R
  • REALbasic
  • Rebol
  • RPG
  • Ruby
  • Squeak
  • Tcl
  • Visual Basic
  • Visual FoxPro
like image 98
Mark Byers Avatar answered Nov 15 '22 07:11

Mark Byers


YAML is a superset of JSON - therefore if a library supports YAML, it also supports JSON.

like image 28
JoeG Avatar answered Nov 15 '22 07:11

JoeG


I'd have to be JSON... Because the situation in the world of YAML is a mess. There are border cases, where every library interprets something differently from the others. That's what you get with ad hoc "specifications"...

See, for example, this rant. And there are plenty more of those out there.

like image 37
bart Avatar answered Nov 15 '22 07:11

bart