I have the following response from jsonRPC endpoint:
{
"jsonrpc": "2.0",
"result": {
"jwt": "EXAMPLE"
}
}
When I log $response->getRpcResult() I get
{
"jwt": "EXAMPLE"
}
When I try taking the value of jwt using $token = $response->getRpcResult()["jwt"]
I get phP message: PHP Warning: Illegal string offset of jwt
Any help is appreciated, I'm a beginner in PHP.