public class ParameterDataDeserializer implements JsonDeserializer<ParameterData>
{
@Override
public ParameterData deserialize(JsonElement inJsonElement, Type inType, JsonDeserializationContext inJsonDeserializationContext) throws JsonParseException
{
ParameterData data = new ParameterData();
JsonObject object = inJsonElement.getAsJsonObject();
data.pos = object.get("pos").getAsInt();
data.type = object.get("type").getAsString();
data.special = (object.has("special") ? object.get("special").getAsString() : "");
data.value = object.get("value").getAsString();