I have a JavaScript object named page.cat.lastResponseText
.
This object has the following string value:
{
"orderBy":"",
"orderDesc":false,
"rows":[
{"catIndId":"3","indId":"1","catId":"2"},
{"catIndId":"4","indId":"4","catId":"2"}
],
"totalResults":2,
"totalPages":1,
"pageSize":2,
"currentPage":1
}
How I can convert this string into a JSON object? And how do I then get the values for object such as cat.rows or cat.totalResults?