diff options
author | Alexander Arlt <alexander.arlt@arlt-labs.com> | 2018-02-07 09:05:20 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-21 04:58:26 +0800 |
commit | 0f29ac4e563f60be781b31ed9ef2693e1a19dcc8 (patch) | |
tree | 888d535ad5698b41f6979622040c3dcce3d300ca /test/fuzzer.cpp | |
parent | dcc4083b231e3574a64b5b2a329a7401677610da (diff) | |
download | dexon-solidity-0f29ac4e563f60be781b31ed9ef2693e1a19dcc8.tar dexon-solidity-0f29ac4e563f60be781b31ed9ef2693e1a19dcc8.tar.gz dexon-solidity-0f29ac4e563f60be781b31ed9ef2693e1a19dcc8.tar.bz2 dexon-solidity-0f29ac4e563f60be781b31ed9ef2693e1a19dcc8.tar.lz dexon-solidity-0f29ac4e563f60be781b31ed9ef2693e1a19dcc8.tar.xz dexon-solidity-0f29ac4e563f60be781b31ed9ef2693e1a19dcc8.tar.zst dexon-solidity-0f29ac4e563f60be781b31ed9ef2693e1a19dcc8.zip |
Add new JSON API for better abstraction and for supporting strict JSON parsing
Diffstat (limited to 'test/fuzzer.cpp')
-rw-r--r-- | test/fuzzer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fuzzer.cpp b/test/fuzzer.cpp index 578e63a4..c61410b6 100644 --- a/test/fuzzer.cpp +++ b/test/fuzzer.cpp @@ -22,7 +22,7 @@ #include <libevmasm/ConstantOptimiser.h> #include <libsolc/libsolc.h> -#include <json/json.h> +#include <libdevcore/JSON.h> #include <boost/program_options.hpp> @@ -101,7 +101,7 @@ void testStandardCompiler() string input = readInput(); string outputString(compileStandard(input.c_str(), NULL)); Json::Value output; - if (!Json::Reader().parse(outputString, output)) + if (!jsonParseStrict(outputString, output)) { cout << "Compiler produced invalid JSON output." << endl; abort(); @@ -129,7 +129,7 @@ void testCompiler(bool optimize) string outputString(compileJSON(input.c_str(), optimize)); Json::Value outputJson; - if (!Json::Reader().parse(outputString, outputJson)) + if (!jsonParseStrict(outputString, outputJson)) { cout << "Compiler produced invalid JSON output." << endl; abort(); |