I need to parse the json in example1 using jsonpath similar to the below example2. But could not find the path since the type of the json is string. Please suggest me some possible ways to parse the json string to modify the value for colourCode dynamically.
Example1:
{
"payload": "{\"carBrand\":{\"model\":{\"colourCode\":2147483647}}}"
}
Example2:
{phone:{phoneType:"iPhone","cat":"11"}}
Jsonpath:
$.phone.phoneType
This will return "iPhone"