Skip to content

Instantly share code, notes, and snippets.

@scripting
Last active June 11, 2018 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scripting/67fd46d35998a0beda354e638d563cbf to your computer and use it in GitHub Desktop.
Save scripting/67fd46d35998a0beda354e638d563cbf to your computer and use it in GitHub Desktop.
Egregious hack to add date and base64 types to JSON for XML-RPC
{
"methodCall": {
"methodName": "examples.echoParams",
"params": [
"#dateTime=2018-06-10T19:41:06.199Z",
"#base64=aGVsbG8gd29ybGQ="
]
}
}
{
"methodCall": {
"methodName": "examples.echoParams",
"params": [
{
"#type": "dateTime",
"#value": "2018-06-10T19:41:06.199Z"
},
{
"#type": "base64",
"#value": "aGVsbG8gd29ybGQ="
}
]
}
}
@scripting
Copy link
Author

scripting commented Jun 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment