refactored so that the JSON array needs to be loaded explicitly