public final class

ModelCodec

extends Object
java.lang.Object
   ↳ android.support.test.espresso.web.model.ModelCodec

Class Overview

Encodes/Decodes JSON.

Summary

Public Methods
static void addDeJSONFactory(JSONAble.DeJSONFactory dejson)
Adds a DeJSONFactory to intercept JSONObjects and replace them with more suitable types.
static Evaluation decodeEvaluation(String json)
Transforms a JSON string to an evaluation.
static String encode(Object javaObject)
Encodes a Java Object into a JSON string.
static void removeDeJSONFactory(JSONAble.DeJSONFactory dejson)
Removes a DeJSONFactory from the list of factories that transform JSONObjects to java objects.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void addDeJSONFactory (JSONAble.DeJSONFactory dejson)

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

public static Evaluation decodeEvaluation (String json)

Transforms a JSON string to an evaluation.

public static String encode (Object javaObject)

Encodes a Java Object into a JSON string.

public static void removeDeJSONFactory (JSONAble.DeJSONFactory dejson)

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