3 ms·
You wouldn't parse the data into objects. Instead, the immutable data structure libraries have their own implementation of maps, lists, and so on. These are the
by yogthos 8y ago
You wouldn't parse the data into objects. Instead, the immutable data structure libraries have their own implementation of maps, lists, and so on. These are the data structures you'd be using. And of course, if you're using a language like ClojureScript then it's just how things work out of the box.
- supermatt 8y agoi appreciate what you are saying about these immutable data libs, but i wasn’t aware they parsed and manipulated json directly. it sounds horrendously inneficient to me, but i’ll do some further investigation. thanks for the heads up
- yogthos 8y agoThat's not what I was suggesting these libs do. You receive JSON as text over the wire. Instead of parsing it into native Js objects, it's instead parsed into alternative implementations of immutable data structures. There's nothing inefficient about it.
- supermatt 8y agothanks. i hadn’t looked into the detail of these libs and had made some incorrect assumptions. will definitely look at their usage for a project historically suffering with side effects on the data.