Much modern web server code talks to upstream services which return JSON data, do
a little munging of that JSON data, and send it over to rich client web pages using
fashionable single page application frameworks. Talking to people working with such
systems I hear a fair bit of frustration of how much work they need to do to
manipulate these JSON documents. Much of this frustration could be avoided by
encapsulating a combination of loading strategies.
In this first installment, I look at refactoring a fully defined load of a
document to support passing it onto further services and providing an in-process API
to access some of its data.
Published on December 14, 2015 09:11