diff --git a/json-serde/src/main/java/org/openx/data/jsonserde/JsonSerDe.java b/json-serde/src/main/java/org/openx/data/jsonserde/JsonSerDe.java index cfee91b2..2c3f8189 100644 --- a/json-serde/src/main/java/org/openx/data/jsonserde/JsonSerDe.java +++ b/json-serde/src/main/java/org/openx/data/jsonserde/JsonSerDe.java @@ -302,22 +302,22 @@ public Object serializeField(Object obj, Boolean.FALSE; break; case BYTE: - result = ((ByteObjectInspector)poi).get(obj); + result = Byte.valueOf(((ByteObjectInspector)poi).get(obj)); break; case DOUBLE: - result = ((DoubleObjectInspector)poi).get(obj); + result = Double.valueOf(((DoubleObjectInspector)poi).get(obj)); break; case FLOAT: - result = ((FloatObjectInspector)poi).get(obj); + result = Float.valueOf(((FloatObjectInspector)poi).get(obj)); break; case INT: - result = ((IntObjectInspector)poi).get(obj); + result = Integer.valueOf(((IntObjectInspector)poi).get(obj)); break; case LONG: - result = ((LongObjectInspector)poi).get(obj); + result = Long.valueOf(((LongObjectInspector)poi).get(obj)); break; case SHORT: - result = ((ShortObjectInspector)poi).get(obj); + result = Short.valueOf(((ShortObjectInspector)poi).get(obj)); break; case STRING: result = ((StringObjectInspector)poi).getPrimitiveJavaObject(obj);