php-crud-api
php-crud-api copied to clipboard
Middleware suggestion: YAML, BSON or NDJSON
Hey,
I like this project. I only had one thought:
Nobody really uses XML anymore. Did you consider making a middleware to support YAML?
Nobody really uses XML anymore.
Well.. in my experience the slow movers (large corporate and gov) do still use it.
Did you consider making a middleware to support YAML?
No, as I feel YAML is better for configuration (than JSON), but not better for data exchange, due to it's lax typing rules (and importance of whitespace). I did consider NDJSON as I feel that is a great idea: simple memory efficient exchange of data.
Do you have arguments why support of YAML would be great? Do you have a use case? Or, do you want to support other protocols, such as NDJSON, BSON or gzipped JSON?
This was not for me, but in general. I do know that many are moving to YAML and probably also (as you mention) other standards. I just wanted to suggest supporting others.
I haven't looked at NDJSON at all. You might also know better what is in use but I have seen YAML used quite a bit, especially in the media industry. It is easy to read (why I am posting a new question re. formatted output).