fix json_object_from_file return value handling