private static void serializeStringDiff(@Nonnull JsonWriter jw, @Nonnull StringDiff.Diff diff) throws IOException {
		jw.beginObject();
		jw.name(KEY_TYPE).value(diff.type().name());
		jw.name(KEY_START_A).value(diff.startA());
		jw.name(KEY_END_A).value(diff.endA());
		jw.name(KEY_TEXT_A).value(diff.textA());
		jw.name(KEY_START_B).value(diff.startB());
		jw.name(KEY_END_B).value(diff.endB());
		jw.name(KEY_TEXT_B).value(diff.textB());
		jw.endObject();
	}
Maps a workspace patch into JSON.

@param patch
		Patch to serialize.

@return JSON string representation of the patch.
recaf-core/src/main/java/software/coley/recaf/services/workspace/patch/PatchSerialization.java