Class JsonIoConverter

java.lang.Object
io.pivotal.cfenv.core.JsonIoConverter

public class JsonIoConverter extends Object
  • Constructor Details

    • JsonIoConverter

      public JsonIoConverter()
  • Method Details

    • jsonToJavaWithListsAndInts

      public static Map jsonToJavaWithListsAndInts(String jsonInput)
      Conveniently takes a Json String as input and uses json-io to unserialize it. Then, converts all the Object[] into List; and all the longs that could have just been ints into ints
      Parameters:
      jsonInput - the string with the Json content
      Returns:
      a serialized version of the input in a Map