Interface GraphJson.UserDataCodec

Enclosing class:
GraphJson

public static interface GraphJson.UserDataCodec
Turns the application's getUserData objects into JSON values and back.
  • Method Summary

    Modifier and Type
    Method
    Description
    decode(Object json)
    The user data for a value encode produced, as the parser returned it.
    encode(Object userData)
    The JSON form of a node's, edge's or group's user data: a String, Number, Boolean, Map or List of those, or null to write nothing.
  • Method Details

    • encode

      Object encode(Object userData)
      The JSON form of a node's, edge's or group's user data: a String, Number, Boolean, Map or List of those, or null to write nothing.
    • decode

      Object decode(Object json)
      The user data for a value encode produced, as the parser returned it.