+ 1

Should I use yaml or json for a js project?

21st Jul 2020, 1:07 AM
Prince Asiedu
Prince Asiedu - avatar
3 Answers
+ 1
JSON looks like JavaScript objects. So it will be more preferred for JS projects. Also, you need extra libraries to work with YAML unlike JSON that is supported natively.
21st Jul 2020, 10:51 AM
Ore
Ore - avatar
+ 1
I would prefer Json, but that's just an opinion. May depend on the data you like to process, the given data storage (it would be e.g. useless to convert to yaml if your data storage is a mongo DB), maybe the client, the structure and specifics of your data and so on...
21st Jul 2020, 2:40 AM
Sandra Meyer
Sandra Meyer - avatar
+ 1
I would use json
21st Jul 2020, 7:43 AM
Dragonxiv
Dragonxiv - avatar