How to convert new line characters with actual new lines in a string in JSON?

后端 未结 0 999
夕颜
夕颜 2021-01-23 06:31

I have the following code that publishes a JSON in the AWS-IoT-Core broker:

const JSON_content = {\'testnewLine\':\'a\\nb\\nc\'}
const topic = `d/testnewLine`

co         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题