First draft of a JSON formatter for metadata.