| ▲ | flyingmeteor 5 hours ago | |||||||||||||
You would need to use the `reviver` parameter of `JSON.parse()` to revive your date strings to Temporal objects. As others have said, it's a simple `Temporal.from()` https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... | ||||||||||||||
| ▲ | Bratmon 3 hours ago | parent | next [-] | |||||||||||||
Having to provide a complete schema of your json everywhere your json gets parsed negates the advantages of json. | ||||||||||||||
| ||||||||||||||
| ▲ | cyral 4 hours ago | parent | prev [-] | |||||||||||||
I've been doing this for so long and never knew there was a reviver param, thanks - that is super useful. | ||||||||||||||