Switching to use objects rather than associative arrays for json_decode ; commenting out all debugging echo's