fail fast if JSON parsing goes awry
Clarified purpose of "library" - its indexing. a rename may be in order