Bug fix to handle old metadata format with escaped quoted json.