tasks/faker.js
function processJson(obj) {
    for (var i in obj) {
      if (typeof(obj[i]) === "object") {
        processJson(obj[i]); // found an obj or array keep digging
      } else if (obj[i] !== null){
        obj[i] = getFunctionNameAndArgs(obj[i]);// not an obj or array, check contents
      }
    }
    return obj;
  }
function processJson(obj) {
    for (var i in obj) {
      if (typeof(obj[i]) === "object") {
        processJson(obj[i]); // found an obj or array keep digging
      } else if (obj[i] !== null){
        obj[i] = getFunctionNameAndArgs(obj[i]);// not an obj or array, check contents
      }
    }
    return obj;
  }
function processJson ( obj ) { for ( var i in obj ) { if ( typeof ( obj [ i ] ) === "object" ) { processJson ( obj [ i ] ) ; // found an obj or array keep digging } else if ( obj [ i ] !== null ) { obj [ i ] = getFunctionNameAndArgs ( obj [ i ] ) ; // not an obj or array, check contents } } return obj ; }
Loop through entire json object
Loop through entire json object