ModelCodec


class ModelCodec


Encodes/Decodes JSON.

Summary

Public functions

java-static Unit

Adds a DeJSONFactory to intercept JSONObjects and replace them with more suitable types.

java-static Evaluation!

Transforms a JSON string to an evaluation.

java-static String!
encode(javaObject: Any!)

Encodes a Java Object into a JSON string.

java-static Unit

Removes a DeJSONFactory from the list of factories that transform JSONObjects to java objects.

Public functions

addDeJSONFactory

java-static fun addDeJSONFactory(dejson: JSONAble.DeJSONFactory!): Unit

Adds a DeJSONFactory to intercept JSONObjects and replace them with more suitable types.

decodeEvaluation

java-static fun decodeEvaluation(json: String!): Evaluation!

Transforms a JSON string to an evaluation.

encode

java-static fun encode(javaObject: Any!): String!

Encodes a Java Object into a JSON string.

removeDeJSONFactory

java-static fun removeDeJSONFactory(dejson: JSONAble.DeJSONFactory!): Unit

Removes a DeJSONFactory from the list of factories that transform JSONObjects to java objects.