Leetcode Shortest Path String Escape Json