Behat: json config feature

Created on 21 May 2018  路  2Comments  路  Source: Behat/Behat

Config of YAML should be rewritten in Json instead. :)

Yml files are not easy readable and user friendly.

Most helpful comment

Yes, there are issues with handling yaml in php, but I'd say that Symfony yaml component used in Behat handles the task pretty well. Extensions can provide validation and I don't really see how switching to json would make the config any more friendly (apart from satisfying personal preferences).

I also don't see how json is more readable to yaml. If anything json brings more "noise".

What new would json bring apart from the syntax, a BC break, and more code to maintain in Behat?
How would it improve the end user experience?

All 2 comments

json is about the same...

Yes, there are issues with handling yaml in php, but I'd say that Symfony yaml component used in Behat handles the task pretty well. Extensions can provide validation and I don't really see how switching to json would make the config any more friendly (apart from satisfying personal preferences).

I also don't see how json is more readable to yaml. If anything json brings more "noise".

What new would json bring apart from the syntax, a BC break, and more code to maintain in Behat?
How would it improve the end user experience?

Was this page helpful?
0 / 5 - 0 ratings