Forum Discussion
PK_294685
Mar 23, 2017Nimbostratus
JSON Base64 Token in iRule
Hello Folks,
Did anyone work on generating JSON token on F5?
I need the token format as below:
{
"userid": "mm36",
"Name": "Casey",
"userid": "12345",
"SomeList":
...
Stanislas_Piro2
Mar 23, 2017Cumulonimbus
Hi,
{
, }
, [
and ]
must be escaped.
set json [b64encode "{\"userid\":\"$userid\",\"Name\":\"$Name\",\"SomeList\":\[\"$SomeList\"\]\,\"Details\":\{\"$Details\"\},\"userRole\":\"$userRole\",\"levels\":\"$levels\"\}"]
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects