Possible fix for issue #4, using JSON references.