@Override public String toJSONString(ByteBuffer buffer, ProtocolVersion protocolVersion) { return getSerializer().deserialize(buffer).toString(); }
@Override public String toJSONString(ByteBuffer buffer, ProtocolVersion protocolVersion) { return getSerializer().deserialize(buffer).toString(); }
@Override public String toJSONString(ByteBuffer buffer, ProtocolVersion protocolVersion) { return getSerializer().deserialize(buffer).toString(); }
@Override public String toJSONString(ByteBuffer buffer, ProtocolVersion protocolVersion) { return getSerializer().deserialize(buffer).toString(); }
@Override public Term fromJSONObject(Object parsed) throws MarshalException { try { return new Constants.Value(getSerializer().serialize(new BigDecimal(parsed.toString()))); } catch (NumberFormatException exc) { throw new MarshalException(String.format("Value '%s' is not a valid representation of a decimal value", parsed)); } }
@Override public Term fromJSONObject(Object parsed) throws MarshalException { try { return new Constants.Value(getSerializer().serialize(new BigDecimal(parsed.toString()))); } catch (NumberFormatException exc) { throw new MarshalException(String.format("Value '%s' is not a valid representation of a decimal value", parsed)); } }
@Override public Term fromJSONObject(Object parsed) throws MarshalException { try { return new Constants.Value(getSerializer().serialize(new BigDecimal(parsed.toString()))); } catch (NumberFormatException exc) { throw new MarshalException(String.format("Value '%s' is not a valid representation of a decimal value", parsed)); } }
@Override public Term fromJSONObject(Object parsed) throws MarshalException { try { return new Constants.Value(getSerializer().serialize(new BigDecimal(parsed.toString()))); } catch (NumberFormatException exc) { throw new MarshalException(String.format("Value '%s' is not a valid representation of a decimal value", parsed)); } }