summaryrefslogtreecommitdiff
path: root/src/text/json_formatter.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-04-21 22:21:05 +0200
committerPetr Mrázek <peterix@gmail.com>2020-06-07 21:23:04 +0200
commitd7deea6dac9ca210a4dec273a7e10453492e04b5 (patch)
treecd64d0170695fe72509641045c866330946f05d1 /src/text/json_formatter.cpp
parent92f8d57227feb94643378ecf595626c60c0f59b8 (diff)
downloadProject-Tick-d7deea6dac9ca210a4dec273a7e10453492e04b5.tar.gz
Project-Tick-d7deea6dac9ca210a4dec273a7e10453492e04b5.zip
Implement tag 12 (array of 64bit long) and fix tests
Diffstat (limited to 'src/text/json_formatter.cpp')
-rw-r--r--src/text/json_formatter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/text/json_formatter.cpp b/src/text/json_formatter.cpp
index 9b47210c6a..3001ff0958 100644
--- a/src/text/json_formatter.cpp
+++ b/src/text/json_formatter.cpp
@@ -151,6 +151,18 @@ namespace //anonymous
os << "]";
}
+ void visit(const tag_long_array& la) override
+ {
+ os << "[";
+ for(unsigned int i = 0; i < la.size(); ++i)
+ {
+ os << la[i];
+ if(i != la.size()-1)
+ os << ", ";
+ }
+ os << "]";
+ }
+
private:
const std::string indent_str = " ";