DeserialiseJson

See javadoc - uk.gov.gchq.koryphe.impl.function.DeserialiseJson

Available since Koryphe version 1.8.0

Parses a JSON string in java objects

Examples

Parse json

Java
JSON
Full JSON
Python
final DeserialiseJson function = new DeserialiseJson();
{
  "class" : "DeserialiseJson"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.function.DeserialiseJson"
}
g.DeserialiseJson()

Input type:

java.lang.String

Example inputs:

Input TypeInputResult TypeResult
java.lang.String{"elements": [{"value": "value1"}, {"value": "value2"}]}java.util.LinkedHashMap{elements=[{value=value1}, {value=value2}]}
java.lang.String[ "ListValue1", "ListValue2", "ListValue3" ]java.util.ArrayList[ListValue1, ListValue2, ListValue3]
java.lang.String{ "number":30 }java.util.LinkedHashMap{number=30}
java.lang.String{ "false":true }java.util.LinkedHashMap{false=true}
java.lang.String{ "class" : "uk.gov.gchq.gaffer.operation.data.EntitySeed", "vertex" : 1 }java.util.LinkedHashMap{class=uk.gov.gchq.gaffer.operation.data.EntitySeed, vertex=1}
java.lang.String[ "listValue1", "listValue1", "listValue1" ]java.util.ArrayList[listValue1, listValue1, listValue1]
java.lang.String{ "key1" : 1.0, "key2" : 2.2, "key3" : 3.3 }java.util.LinkedHashMap{key1=1.0, key2=2.2, key3=3.3}

results matching ""

    No results matching ""