hey folks,

while writing tests for JsonPatch in our JSONP-1.1 branch, it becomes apparent 
that our behavior for the get*-methods in JsonObject differs with the 
implementation in the unoffical RI.

if a key does not exist, we throw a NPE while the spec says it should return 
null 
(https://github.com/json-processing-inofficial/jsonp/blob/master/api/src/main/java/javax/json/JsonObject.java#L149
 
<https://github.com/json-processing-inofficial/jsonp/blob/master/api/src/main/java/javax/json/JsonObject.java#L149>)


     * @return the object value to which the specified name is mapped, or
     *         {@code null} if this object contains no mapping for the name


imo we should fix it - know the big question: 
fix it only in jsonp-1.1 or also in jsonp-1.0?

lg
reini

Reply via email to