Skip to content

Commit

Permalink
JSON detail using String.valueOf()
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlasov committed Aug 9, 2019
1 parent fd45820 commit 9cb86a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/org/nasdanika/common/ProgressRecorder.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public JSONObject toJSON() {
* @return
*/
protected Object detailToJSON(Object detail) {
return parent == null ? null /* DefaultConverter.INSTANCE.convert(detail, JSONObject.class) */ : parent.detailToJSON(detail);
return parent == null ? String.valueOf(detail) /* DefaultConverter.INSTANCE.convert(detail, JSONObject.class) */ : parent.detailToJSON(detail);
}

@Override
Expand Down

0 comments on commit 9cb86a2

Please sign in to comment.