public < T > T put ( Object jsonObject , String key , Object value , Configuration configuration ) { notNull ( jsonObject , "json can not be null" ) ; notEmpty ( key , "key can not be null or empty" ) ; notNull ( configuration , "configuration can not be null" ) ; EvaluationContext evaluationContext = path . evaluate ( jsonObject , jsonObject , configuration , true ) ; for ( PathRef updateOperation : evaluationContext . updateOperations ( ) ) { updateOperation . put ( key , value , configuration ) ; } return resultByConfiguration ( jsonObject , configuration , evaluationContext ) ; }
Adds or updates the Object this path points to in the provided jsonObject with a key with a value