Writing JSON object to .json file on server

后端 未结 4 1932
小鲜肉
小鲜肉 2020-12-03 06:06

I\'m trying to write my JSON object to a .json file on the server. The way I\'m doing this now is:

JavaScript:

function createJsonFile() {

    var j         


        
4条回答
  •  清歌不尽
    2020-12-03 06:28

    Probably too late to answer the question. But I encountered the same issue. I resolved it by using "JSON_PRETTY_PRINT"

    Following is my code:

    
    

提交回复
热议问题