Make the getAllJson function, dump output to the json_out file
Fix typos