What will be the best way to convert json object like
{"id" : 1, "name": "John"}
to json array
[{"id" : 1},{"name": "John"}]
using javascript.
Update: I want to do it because in Sequelize I have to pass filters as Json array with operator "or" while i have that in Json.
Object.entries({"id" : 1, "name": "John"}).map(([key, value]) => ({[key]: value}))