All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jsonvalues.JsObjLens Maven / Gradle / Ivy

package jsonvalues;


/**
 Represent a Lens which focus is a json object located at a path is a Json

 @param  the type of the whole part, an array or an object */
public class JsObjLens> extends Lens {
    JsObjLens(final JsPath path) {
        super(json -> json.getObj(path),
              o -> json -> json.set(path,
                                    o)
             );
    }
}