No subject
Thu Feb 16 03:44:05 GMT 2012
JSONish syntax?
That is, if the user types
12345
they get the longstr "12345";
Hello
they get the longstr "Hello";
=12345
they get a numeric type with value 12345;
="Hello"
they get the longstr "Hello";
=Hello
they get a syntax error (it isn't JSON).
JSON's numbers, strings, booleans, arrays and maps ought to be enough for
the majority of cases. (It might be worth an Application Note on the
website regarding the mapping from AMQP table data to and from JSON, and
encouraging applications and plugins to stick to the common interoperable
subset...)
Tony
--
Tony Garnock-Jones
tonygarnockjones at gmail.com
http://homepages.kcbbs.gen.nz/tonyg/
--14dae93408f748a39f04bc24b5d1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On 26 March 2012 06:33, Simon MacMullen <span dir=3D"ltr"><<a href=3D"ma=
ilto:simon at rabbitmq.com">simon at rabbitmq.com</a>></span> wrote:<br><div c=
lass=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I was really determined to avoid having a type select in the UI. But I'=
m not sure that can be avoided. I'll file a bug.<br></blockquote><div><=
br>From the "Works for Excel" file: how about a magic escape into=
some kind of JSONish syntax?<br>
<br>That is, if the user types<br><br><div style=3D"margin-left:40px">12345=
<br></div><br>they get the longstr "12345";<br><br><div style=3D"=
margin-left:40px">Hello<br></div><br>they get the longstr "Hello"=
;<br>
<br><div style=3D"margin-left:40px">=3D12345<br></div><br>they get a numeri=
c type with value 12345;<br><br><div style=3D"margin-left:40px">=3D"He=
llo"<br></div><br>they get the longstr "Hello";<br><br><div =
style=3D"margin-left:40px">
=3DHello<br></div><br>they get a syntax error (it isn't JSON).<br><br>J=
SON's numbers, strings, booleans, arrays and maps ought to be enough fo=
r the majority of cases. (It might be worth an Application Note on the webs=
ite regarding the mapping from AMQP table data to and from JSON, and encour=
aging applications and plugins to stick to the common interoperable subset.=
..)<br>
<br>Tony<br>-- <br></div></div>Tony Garnock-Jones<br><a href=3D"mailto:tony=
garnockjones at gmail.com" target=3D"_blank">tonygarnockjones at gmail.com</a><br=
><a href=3D"http://homepages.kcbbs.gen.nz/tonyg/" target=3D"_blank">http://=
homepages.kcbbs.gen.nz/tonyg/</a><br>
--14dae93408f748a39f04bc24b5d1--
More information about the rabbitmq-discuss
mailing list