简体   繁体   中英

JSON parsing functions in BlackBerry browser

If I have a web page with some Javascript code that calls the JSON parsing functions (JSON.parse and JSON.stringify), will it work in the BlackBerry browser without the help of any 3rd-party libraries? Which versions support those functions?

I looked on Google, Stack Overflow, Can I Use, and QuirksMode.org and I couldn't find anything useful about this.

If you are dead-sure that your JSON is clean and non-dangerous, just use eval() .

If you must parse it and your target OS version does not include JSON support (for example, the OS 6 browser does not), then you will have to resort to a third-party library.

I've been successfully using Douglas Crockford's json2.js .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM