AVRO-1454. Java: Fix GenericData#toString and AvroAsTextRecordReader to generate valid Json for NaN and infinities.

git-svn-id: https://svn.apache.org/repos/asf/avro/trunk@1573670 13f79535-47bb-0310-9956-ffa450edef68