@@ -18,6 +18,6 @@ export default class JsonValidator {
}
validateResultsCount(count){
equal(this.results.length,count,'Total count of results does not match expected count.');
equal(this.results.length,count,`Total count of results does not match expected count. Known keys are: [${this.results.map(item=>item._id.key).join(',')}].`);
key=config.arrayEscape+key+config.arrayEscape;//translate unnamed object key from {_parent_name_}.{_index_} to {_parent_name_}.arrayEscape{_index_}arrayEscape.
key=config.arrayEscape+key+config.arrayEscape;//translate unnamed object key from {_parent_name_}.{_index_} to {_parent_name_}.arrayEscape{_index_}arrayEscape.
result[parentKey+key]=value;
//it's an object, recurse...only if we haven't reached max depth