Unity/잡학 사전

[Unity/데이터] Platform 별 JSON.parse

sorry0101 2023. 5. 24. 10:07

AOS 는 JavaScript 스타일의 스트링을 포용하지만

IOS나 Windows 는 읽어내지 못하는 듯

 

EX.

str = "{'a', 'b'}";
JSON.parse(str);
// AOS => a, b
// IOS, WIN => Error

참고

https://developer.apple.com/forums/thread/722651
https://stackoverflow.com/questions/36038454/parsing-string-as-json-with-single-quotes