Skip to content

#57 Added public access to JsonPathParser #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/gravity9/jsonpatch/JsonPathParser.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.gravity9.jsonpatch;

class JsonPathParser {
public class JsonPathParser {

private JsonPathParser() {}

Expand All @@ -12,7 +12,7 @@ private JsonPathParser() {}
* @return String containing JsonPath expression
* @throws JsonPatchException throws when invalid JsonPointer expression provided
*/
static String parsePathToJsonPath(String path) throws JsonPatchException {
public static String parsePathToJsonPath(String path) throws JsonPatchException {
if (path.startsWith("$")) {
return path;
} else if (path.contains("?")) {
Expand Down