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