How to convert JSON Text to a JavaScript Object ?5
854 5b5cc6dae4d2b4197774e8a3
Q: How to convert JSON Text to a JavaScript Object ?
- उत्तर देखें
- Workspace
- चर्चा
Answer :
Explanation :
One of the most common use of JSON is to fetch JSON data from a web server (as a file or as an HttpRequest), convert the JSON data to a JavaScript object, and then it uses the data in a web page. The eval() function can compile and execute any JavaScript. This represents a potential security problem. It is safer to use a JSON parser to convert a JSON text to a JavaScript object. A JSON parser will recognize only JSON text and will not compile scripts.
समान प्रश्न
Since Nithya and Suganya exchange places, so Rita’s new position is the same as Monika’s earlier position. This position is 17th from the right and 10th from the left. Therefore Number of girls in the row = (16 + 1 + 9) = 26.