lib/validate-bemjson.js
function extractBemJsonNode(bemJson) {
  let result = JSON.parse(JSON.stringify(bemJson));

  Object.keys(result).forEach((key) => {
    result[key] = result[key].toString();
  });

  return JSON.stringify(result, null, 2);
}
function extractBemJsonNode(bemJson) {
  let result = JSON.parse(JSON.stringify(bemJson));

  Object.keys(result).forEach((key) => {
    result[key] = result[key].toString();
  });

  return JSON.stringify(result, null, 2);
}
function extractBemJsonNode ( bemJson ) { let result = JSON . parse ( JSON . stringify ( bemJson ) ) ; Object . keys ( result ) . forEach ( ( key ) => { result [ key ] = result [ key ] . toString ( ) ; } ) ; return JSON . stringify ( result , null , 2 ) ; }
Strips all child nodes from BemJson node for print puproses

@param {Object} bemJson
@return {Object}
Strips all child nodes from BemJson node for print puproses