Update json_wrap.hpp

Fix for #381
This commit is contained in:
arcoRocks 2017-11-24 10:15:06 +01:00 committed by GitHub
parent 903454bf05
commit af76d1bb42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,6 +142,8 @@ namespace chaiscript
// not a dynamic object // not a dynamic object
} }
if (t_bv.is_null()) return json::JSON(); // a null value
throw std::runtime_error("Unknown object type to convert to JSON"); throw std::runtime_error("Unknown object type to convert to JSON");
} }