Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the purpose of the method JSON.parse()?

  2. A.

     Parses a string to integer

    B.

     Parses a string to JSON

    C.

     Parses a string from JSON to JSON2

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing.


Be The First To Comment