fix toBoolWithJsonValue