Rename json() to stringify().
Update tests.

Also make default name basename(process.argv[1]).