changed so main prints JSON array as string