Add support for metadata functions -json
command
#358
Merged
metadata functions -json
command
#358