functions for handling htrc json metadata added to htrc.py