php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

Middleware suggestion: YAML, BSON or NDJSON

Open cooperdk opened this issue 5 years ago • 2 comments

Hey,

I like this project. I only had one thought:

Nobody really uses XML anymore. Did you consider making a middleware to support YAML?

cooperdk avatar Oct 07 '20 20:10 cooperdk

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?

mevdschee avatar Oct 07 '20 20:10 mevdschee

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).

cooperdk avatar Oct 07 '20 23:10 cooperdk