in reply to treat diff file in perl

What you have is not specific to JSON.

Most likely you can simply walk through the diff file and output the changes. If the diff file does not have enough context, you have to read the original and then apply the diff to output the changes.

What code have you already written to process the diff file?