print comma before json item so we do not end in trailing comma ever