Revert "Modify json::decode() to throw exceptions on error instead of returning boolean value."

This reverts commit 3fdfa75ecd934fbc08b9d2abb5d69555354f1775.
json::decode() throws exception instead return false on error