Parsing a message in JavaScript with JSON

In the previous section of example we have studied how to create message in JSON in JavaScript and now we will come to know that how we can parse the message in JSON in JavaScript.

In the previous section of example we have studied how to create message in JSON in JavaScript and now we will come to know that how we can parse the message in JSON in JavaScript.

Parsing a message in JavaScript with JSON

In the previous section of example we have studied how
to create message in JSON in JavaScript and now we will come to know that how we
can parse the message in JSON in JavaScript.

We can parse the message with JSON in JavaScript by
using the method "String.parseJSON(filter)". It parses the JSON
message to an string or object. The parameter "filter" is optional in
this method which is used to filter message or transform their results. This
method internally uses the JavaScript's method eval() to parse messages.