Convert js format to json format
Convert json format to js var format
转载自 https://github.com/jrainlau/scion