Below is code that I am trying to validate on json. but i keep getting “expected string” error. please help
{
'auth.login': {
'url': 'https: //api.optionshouse.com/m',
'params': {
'EZMessage': {
'action': 'auth.login',
'data': {
'userName': 'rspt',
'password': 'xxx'
}
}
}
}
}
JSON does not allow single-quoted strings.
You need to use double quotes.