append Json Formatted Key And Value
Helper method to emit metadata key/value pairs in a format consistent with JSON. String values which need to be quoted are JSON escaped, while other values are appended without quoting or escaping. Labels are expected to be JSON "safe", and are never quoted. This format is compatible with various "lightweight" JSON representations.