Add convenience method to load JSON from an input stream.