During Laravel installation, I ran into Composer and JavaScript Object Notation (JSON) format.
I was wondering whether alternatives to this format exist, that have the same string - value system?
There are stacks of data formats that can represent data in the same way as JSON.
JSON happens to be the one that's found the most widespread acceptance, but there are plenty of others.
And there's plenty of others, both standard and proprietary. You can even make up your own; as long as you can read and write it, it's a perfectly good data format. There's no right or wrong choice. But the best solution is generally to stick with the most common ones, as they'll have that much more support in the languages you're working in, and there will be more resources available for you to learn from. For my money, that makes JSON a clear winner.
In any case, when it comes to using a third-party product like Composer, you're kinda forced to use the data format of their choice, which in this case is JSON.
One alternative could be YAML. Both JSON and YAML are human readable data interchange formats. You can find more information in the specs: http://www.yaml.org/spec/1.2/spec.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With