I've noticed that JSONObject toString serialization with "null" value String properties (not null references but "null" values) are handled in invalid way:

    JSONObject obj = new JSONObject();
    obj.put("key", "null");
    System.out.println(obj);

returns

{"key":null}

where it should return

{"key":"null"}

Can it be bypassed somehow?