detect value type and JSON.parse it by its type js code example
Example: js string to json
var obj = JSON.parse("{no:'u',my:'sql'}");//returnes {no:'u',my:'sql'}
var obj = JSON.parse("{no:'u',my:'sql'}");//returnes {no:'u',my:'sql'}