@GameBot said in remove all line breaks from a string in BAS:
[[TEXT_TITLE]] = [[TEXT_TITLE]].trim()
Thank you
I can't make the string to JSON work even with the basic example: {"a":"b"}.
I have exactly that written in a file called test.txt.
I read it with the readfile module
then I get "{"a":"b"}".
Then string to json module fails.
@samuelnihoul said in Cannot convert basic JSON to string with the JSON module:
I can't make the string to JSON work even with the basic example: {"a":"b"}.
I have exactly that written in a file called test.txt.
I read it with the readfile module
then I get "{"a":"b"}".
Then string to json module fails.
var parsed = JSON.parse(some_string_value);
OK thanks