toJSON() {
    var json = [];

    for (var ref in this.entities) {
      json.push(this.entities[ref]);
    }

    for (ref in this.embeddables) {
      json.push(this.embeddables[ref]);
    }

    return json;
  }
/**
   * Get the current schema types as json
   * @returns {json} the json data
   */
Get the current schema types as json
@returns {json} the json data
Get the current schema types as json @returns { json } the json data
toJSON() {
    var json = [];
    for (var ref in this.entities) {
      json.push(this.entities[ref]);
    }
    for (ref in this.embeddables) {
      json.push(this.embeddables[ref]);
    }
    return json;
  }
toJSON ( ) { var json = [ ] ; for ( var ref in this . entities ) { json . push ( this . entities [ ref ] ) ; } for ( ref in this . embeddables ) { json . push ( this . embeddables [ ref ] ) ; } return json ; }
Get the current schema types as json
 @returns {json} the json data
Get the current schema types as json @returns { json } the json data