Closed jorol closed 1 year ago
$ echo '{"title":"code4lib"}' | catmandu convert JSON to PICA --type Plain --fix 'pica_add(title,021A$a)' PICA record must be array reference $ echo '{"title":"code4lib"}' | catmandu convert JSON to PICA --type Plain --fix 'pica_add(title,021A$a,record:"pica")' PICA record must be array reference $echo '{"title":"code4lib"}' | catmandu convert JSON to YAML --fix 'pica_add(title,021A$a)' --- title: code4lib ...
Works if key is defined beforehand:
echo '{"title":"code4lib"}' | catmandu convert JSON to PICA --type Plain --fix 'set_array(record);pica_add(title,021A$a)' 021A $acode4lib
I'll create pica_update(PATH, value) instead and depracte pica_add because of the order of arguments (see #82).
pica_update(PATH, value)
pica_add
Fixed in 1.14 to be released today.
Works if key is defined beforehand: