content-collections icon indicating copy to clipboard operation
content-collections copied to clipboard

Improve serialization

Open sdorra opened this issue 1 year ago • 0 comments

At the time of writing, content-collections serialize the generated documents as JSON. The problem with this approach is that JSON has a limited set of data types (string, number, boolean, null, object, or array), and this is why the generated documents have only those data types as well (#21).

It would be nice if data types such as Date could be used as part of the document as well. We could possibly achieve this by using a library such as serialize-javascript instead of JSON.stringify.

sdorra avatar Mar 30 '24 13:03 sdorra