public static PatchOp fromChar(char ch) {
			return switch (ch) {
				case '+' -> PatchOp.ADD;
				case '-' -> PatchOp.REMOVE;
				default -> null;
			};
		}
Converts this patch to a json array.

@return json array with json encoded patch/diff elements.
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/JsonPatch.java