ng2-rest 13.0.12 → 13.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -988,6 +988,13 @@ var Models;
988
988
  get booleanValue() {
989
989
  return ['ok', 'true'].includes(this.body.trim());
990
990
  }
991
+ get rawJson() {
992
+ let res = this.toJSON(this.body, this.isArray);
993
+ if (this.circular && Array.isArray(this.circular)) {
994
+ res = JSON10.parse(JSON.stringify(res), this.circular);
995
+ }
996
+ return res;
997
+ }
991
998
  get json() {
992
999
  if (this.entity && typeof this.entity === 'object') {
993
1000
  const json = this.toJSON(this.body, this.isArray);