[LIT] Add JSONMetricValue type to wrap types supported by the json encoder.