Round-trip JSON with the JSON module: decode to a Perl hashref and re-encode.
Language: Perl
Fetch a URL with LWP::UserAgent and print the body or die on failure.
Open a file for writing and emit several lines, then close cleanly.
Open a filehandle and iterate over a text file one line at a time, chomping trailing newlines.