aboutsummaryrefslogtreecommitdiff
path: root/source/import/Json.mc
diff options
context:
space:
mode:
Diffstat (limited to 'source/import/Json.mc')
-rw-r--r--source/import/Json.mc5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/import/Json.mc b/source/import/Json.mc
index c19150e..e3e9fa8 100644
--- a/source/import/Json.mc
+++ b/source/import/Json.mc
@@ -84,6 +84,11 @@ module Json {
return _data.size();
}
+ // The input itself (kept when the document is incomplete).
+ function data() as ByteArray {
+ return _data;
+ }
+
// The next token (T_*). After T_END, T_INCOMPLETE or T_ERROR every
// further call returns the same token.
function next() as Number {