public class JSONUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.amazonaws.services.cloudwatch.model.MetricDatum |
decodeJSON(String json)
Extract the metric datum from a string JSON.
|
static String |
encodeToJSON(com.amazonaws.services.cloudwatch.model.MetricDatum metricDatum)
Encode the metric datum to a JSON.
|
public static String encodeToJSON(com.amazonaws.services.cloudwatch.model.MetricDatum metricDatum)
metricDatum - instance to encodepublic static com.amazonaws.services.cloudwatch.model.MetricDatum decodeJSON(String json)
json - the JSON representation of metric datumnull if any exception occurs.Copyright © 2018. All rights reserved.