I am curious how JavaScript EventSource and other similar objects having number and string properties can be converted to JSON.
I have tried some stuff with JSON.stringify(...)
and eventSource.entries()
but I get empty JSON.
I know that I can simply console.log(eventSource)
.
I am curious if I can make it a JSON not using console.log(...)
.