small fix to use json_spirit objects