json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Support custom data format transforms

Open mk-pmb opened this issue 6 years ago • 1 comments

Hi, nice idea the json-server! Could you add support for adapters for other data formats? There's already a request for YAML in #546, I prefer CESON, TOML would be nice as well, and there are probably lots more data formats that people would like to store their data in. I guess the implementation should be in lowdb similar to the adapters, and json-server just needs to pass a user-chosen module name down to lowdb. The format adapter should get the storage filename or URL so it can guess the format from filename extension, and read additional files (e.g. indexes) if the format requires it.

mk-pmb avatar Sep 10 '17 15:09 mk-pmb

+1 for JSONC

nikitalpopov avatar Dec 04 '21 12:12 nikitalpopov