Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scripting opened this issue Jun 10, 2018 · 1 comment
Open

Comments

@scripting
Copy link
Owner

I wrote up this issue here.

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

Dave

@allenwb
Copy link

allenwb commented Sep 10, 2019

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants