Move JSON helpers to libdevcore/json

This commit is contained in:
Alex Beregszaszi
2016-11-15 17:38:18 +00:00
parent 9205662de9
commit 81c50143f2
4 changed files with 57 additions and 29 deletions
+2 -1
View File
@@ -26,6 +26,7 @@
#include <libsolidity/interface/CompilerStack.h>
#include <libsolidity/interface/Exceptions.h>
#include <libdevcore/Exceptions.h>
#include <libdevcore/JSON.h>
namespace dev
{
@@ -57,7 +58,7 @@ public:
BOOST_CHECK_MESSAGE(
expectedDocumentation == generatedDocumentation,
"Expected " << _expectedDocumentationString <<
"\n but got:\n" << Json::StyledWriter().write(generatedDocumentation)
"\n but got:\n" << dev::jsonPrettyPrint(generatedDocumentation)
);
}