changed nil to empty for json path