Metadata.
to_json
Convert the current Metadata object into a JSON string
pretty_print – Boolean allowing for pretty printing
path – String of the JSON file to write
A String containing the JSON