added json location writer