Immutable JSON

1 · David Nolen · July 30, 2014, midnight
Facebook just released immutable-js a persistent data structure library for JavaScript. Given the performance benefit immutable data can bring to React, it's little surprise Facebook is investing in them. However the question remains how to deliver immutable data to clients given the prevalence of JSON. In this post I'm going to demonstrate consuming plain JSON with transit-js and producing immutable-js values instead of JavaScript objects and arrays. If you have Node.js installed you can follow...