scripting / xml-rpc

XML-RPC client and server in JavaScript.
MIT License
61 stars 28 forks source link

In JSON syntax, dates and base64 data are represented as strings #4

Open scripting opened 6 years ago

scripting commented 6 years ago

I wrote up this issue here.

http://scripting.com/2018/06/10/152333.html

Dave

allenwb commented 5 years ago

Here's another alternative:

{
    "methodCall": {
        "methodName": "examples.echoParams",
        "params": [
            {"#type:dateTime": "2018-06-10T19:41:06.199Z"},
            {"#type:base64": "aGVsbG8gd29ybGQ="}
        ]
    }
}

got the idea of encoding the type in the property name from: https://www.tjson.org/