mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-21 00:19:42 +02:00
fix for rare instances when the output is a list of lists (yaml | yaml -> json)
This commit is contained in:
@ -620,10 +620,11 @@ class JcCli():
|
||||
self.data_out.append({})
|
||||
|
||||
for item in self.data_out:
|
||||
if '_jc_meta' not in item:
|
||||
item['_jc_meta'] = {}
|
||||
if isinstance(item, dict):
|
||||
if '_jc_meta' not in item:
|
||||
item['_jc_meta'] = {}
|
||||
|
||||
item['_jc_meta'].update(meta_obj)
|
||||
item['_jc_meta'].update(meta_obj)
|
||||
|
||||
else:
|
||||
utils.error_message(['Parser returned an unsupported object type.'])
|
||||
|
Reference in New Issue
Block a user