Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface GraphJson.UserDataCodec
Turns the application’s
getUserData objects into JSON values and
back.Methods
public abstract 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. |
public abstract Object decode(Object json) | The user data for a value encode produced, as the parser returned it. |
Method details
encode
public abstract 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
public abstract Object decode(Object json)The user data for a value
encode produced, as the parser returned
it.