public static String toJsonString ( Collection < Attribute > attributeCollection , ObjectMapper objectMapper ) throws JsonProcessingException { return objectMapper . writeValueAsString ( toObject ( attributeCollection ) ) ; }
Re - expands a flattened json representation from a collection of attributes back into a raw nested json string .