OpenNTF / org.openntf.domino

Open replacement for lotus.domino package in HCL Domino
Apache License 2.0
65 stars 34 forks source link

Document.toJson() error on non-String fields #124

Closed paulswithers closed 9 years ago

paulswithers commented 9 years ago

Uses DominoUtils.toSerializable, but JsonWriter.outProperty(field, value) errors on a java.util.Date. Also returns null for MimeBean fields

paulswithers commented 9 years ago

Changed to output text using Item.getText(). If Item.getMimeEntity() != null, try abstracted text. If that's null, write out "MIME ITEM, VALUE CANNOT BE DECODED TO JSON"