in costcategory/src/main/java/software/amazon/ce/costcategory/CostCategoryParser.java [97:110]
public static List<CostCategorySplitChargeRule> costCategorySplitChargeRulesFromJson(String json) {
if (json == null) {
return null;
}
try {
CostCategorySplitChargeRule[] rules = OBJECT_MAPPER.readValue(json, CostCategorySplitChargeRule[].class);
return Arrays.asList(rules);
} catch (JsonMappingException ex) {
throw new CfnInvalidRequestException(String.format("Unsupported JSON array '%s' for cost category split charge rules", json), ex);
} catch (Exception ex) {
throw new CfnInvalidRequestException(String.format("Invalid JSON array '%s' for cost category split charge rules", json), ex);
}
}