adding json array to print