private static void serializeJvmAsmPatches(@Nonnull List<JvmAssemblerPatch> jvmAssemblerPatches, @Nonnull JsonWriter jw) throws IOException {
		if (!jvmAssemblerPatches.isEmpty()) {
			jw.name(KEY_CLASS_JVM_ASM_DIFFS).beginArray();
			for (JvmAssemblerPatch classPatch : jvmAssemblerPatches) {
				String className = classPatch.path().getValue().getName();
				jw.beginObject();
				jw.name(KEY_NAME).value(className);
				jw.name(KEY_DIFFS).beginArray();
				for (StringDiff.Diff assemblerDiff : classPatch.assemblerDiffs())
					serializeStringDiff(jw, assemblerDiff);
				jw.endArray().endObject();
			}
			jw.endArray();
		}
	}
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