douglascrockford/JSON-java — comment on commit 5a4fb657a8eca50e612b772611a2439ff23dab50
File:  line 0
By hendriktries:

When calling optString it retrieved "". Following line is not correct, isn't it?

return JSONObject.NULL.equals(object) ? object.toString() : defaultValue;

Should be:

return JSONObject.NULL.equals(object) ? defaultValue : object.toString() ;

I've tested the new line in my project and it worked as expected.