Skip to content

Commit

Permalink
Merge pull request #65 from mykola-mokhnach/allow_null_in_json
Browse files Browse the repository at this point in the history
Allow null values in JSON response
  • Loading branch information
sravanmedarapu authored Jul 17, 2017
2 parents 93f0733 + 3bfec18 commit e8a2d72
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ public String render() {
o.put("sessionId", sessionId);
}
o.put("status", status);
if (value != null) {
o.put("value", value);
}
o.put("value", value);
} catch (JSONException e) {
Logger.error("Unable to create JSON Object:", e);
}
Expand Down

0 comments on commit e8a2d72

Please sign in to comment.