perka/flatpack-java — pull request #18 by nmorel (2012-09-30 21:00:29+00:00)
Title: Write BigDecimal and BigInteger as string to avoid problem when unpacking

If we pass directly the BigDecimal/BigInteger to the writer, it will be written as a number without the quote. If the number is too big, the gson parser will fail unless we set lenient to true and in GWT, we will just get the max integer/double value.