dist/aurelia-orm.js
function asJson(entity, shallow) {
  let json;

  try {
    json = JSON.stringify(asObject(entity, shallow));
  } catch (error) {
    json = '';
  }

  return json;
}
function asJson(entity, shallow) {
  let json;

  try {
    json = JSON.stringify(asObject(entity, shallow));
  } catch (error) {
    json = '';
  }

  return json;
}
function asJson ( entity , shallow ) { let json ; try { json = JSON . stringify ( asObject ( entity , shallow ) ) ; } catch ( error ) { json = '' ; } return json ; }
Entity representation as json

@param {Entity} entity
@param {boolean} [shallow]

@return {string}
Entity representation as json