mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add new JSON API for better abstraction and for supporting strict JSON parsing
This commit is contained in:
1 parent
dcc4083b23
commit
0f29ac4e56
15 files changed
+337
-53
No files matched your search
@@ -44,7 +44,7 @@ Json::Value compileSingle(string const& _input)
|
||||
{
|
||||
string output(compileJSON(_input.c_str(), dev::test::Options::get().optimize));
|
||||
Json::Value ret;
|
||||
BOOST_REQUIRE(Json::Reader().parse(output, ret, false));
|
||||
BOOST_REQUIRE(jsonParseStrict(output, ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ Json::Value compileMulti(string const& _input, bool _callback)
|
||||
compileJSONMulti(_input.c_str(), dev::test::Options::get().optimize)
|
||||
);
|
||||
Json::Value ret;
|
||||
BOOST_REQUIRE(Json::Reader().parse(output, ret, false));
|
||||
BOOST_REQUIRE(jsonParseStrict(output, ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ Json::Value compile(string const& _input)
|
||||
{
|
||||
string output(compileStandard(_input.c_str(), NULL));
|
||||
Json::Value ret;
|
||||
BOOST_REQUIRE(Json::Reader().parse(output, ret, false));
|
||||
BOOST_REQUIRE(jsonParseStrict(output, ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user