public class JsonUtility extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getCodes(String content) |
static com.fasterxml.jackson.databind.JsonNode |
getNode(String json)
Parse the JSON string into a
JsonNode object. |
static com.fasterxml.jackson.databind.JsonNode |
getNode(String json,
String field)
Parse the JSON string into a
JsonNode object with the specified field as root field. |
static List<Area> |
parseAreas(com.fasterxml.jackson.databind.JsonNode node) |
static List<MeanAgeFirstChild> |
parseAverageAgeFirstChild(com.fasterxml.jackson.databind.JsonNode node) |
static List<LiveBirth> |
parseLiveBirths(com.fasterxml.jackson.databind.JsonNode node) |
static List<Population> |
parsePopulation(com.fasterxml.jackson.databind.JsonNode node) |
public static com.fasterxml.jackson.databind.JsonNode getNode(String json)
JsonNode object.json - the JSON contentJsonNode objectpublic static com.fasterxml.jackson.databind.JsonNode getNode(String json, String field)
JsonNode object with the specified field as root field.json - the JSON contentfield - the field in the JSON to become the rootJsonNode object with the specified field as root.public static List<MeanAgeFirstChild> parseAverageAgeFirstChild(com.fasterxml.jackson.databind.JsonNode node)
public static List<LiveBirth> parseLiveBirths(com.fasterxml.jackson.databind.JsonNode node)
public static List<Population> parsePopulation(com.fasterxml.jackson.databind.JsonNode node)
Copyright © 2016. All rights reserved.