Multi-line text causing Json parsing error« Back to Questions List

Question about the text output. It outputs the multi-line text which is great for us, but causing Json parsing error.

In another word, the generated Json file is invalid due to the new line character.

{
	"type":"text",
	"font":"Anton",
	"justification":"center",
	"color":"0xFFC706",
	"size":50,
	"name":"page1text2",
	"x":686,
	"y":413,
	"width":114,
	"height":171 ,
	"text":"Sword
active in a
pack!" ,
	"effects":{
		"dropShadow":{
			"distance":9,
			"angle":120,
			"color":"0x181818",
			"alpha":75,
			"blurX":8,
			"blurY":8
		},
		"frameFX":{
			"lineSize":3,
			"color":"0x000000",
			"alpha":100
		}
	}
},

Asked by harry8888
Added June 6, 2016 3:57 am

This question has been resolved, view the correct answer now!

Correct Answer

Hi,

Tech has applied a hot-fix to correct this. You can re-export and you will get

\r

with your JSON output when using multi-line text.

Answer by admin
Answered On June 6, 2016 2:42 pm #

Hi,

The correct way to do this is with ${char} tag. This will give you the property rawurlencoded:true, you can use decodeURIComponent with javascript to render the text or similar in other environments.

NOTE: ${char} tag works with all special characters.

Tech will pass amessage to Dev to request this to be an automatic feature.

Answer by admin
Answered On June 6, 2016 4:01 am #
Looking for another answer? View other questions in Text Error Output or get premium support for guaranteed results.
Asked by harry8888
1849 views
2 answers
Last Answered 9 years ago by admin

Categories

Recent Answers

asked by lafejol
asked by lafejol
asked by rihabbenhmida
asked by zaineb khiari
[+] View All Recent Questions

Share Your Knowledge!

Contribute to the community and help other users to benefit from your answer with experience and knowledge.