now using line split json encoding