private String pathToProperty ( String path ) { if ( path == null || ! path . startsWith ( "/" ) ) { throw new IllegalArgumentException ( "Path must be prefixed with a \"/\"." ) ; } return path . substring ( 1 ) ; }
Converts a JSON patch path to a JSON property name . Currently the metadata API only supports flat maps .