Use toJSON in Info.
Fix NULL top-level node in Metadata JSON output.