parse json array

right now it prints to console.