running json commands on sepreate process to attempt memory leak fix