Skip to content

Commit 95792e4

Browse files
committed
Added toJSON for AV.File
1 parent dd1daa7 commit 95792e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/file.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@
380380

381381
AV.File.prototype = {
382382

383+
toJSON: function() {
384+
return AV._encode(this);
385+
},
386+
383387
/**
384388
* Returns the ACL for this file.
385389
* @returns {AV.ACL} An instance of AV.ACL.

0 commit comments

Comments
 (0)