<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
Hi All,<br>
May be, it could help.<br>
In the MOC standard document, we just suggested one way to
serialize MOC in JSON. It is not in the standard part of the
document, but just as an advise. An concretely we see more and
more clients and servers using this JSON serialization when it is
required (mainly in JS world) and not another JSON dialect. It
could be a quite pragmatic and efficient approach.<br>
Cheers<br>
Pierre<br>
<br>
<img src="cid:part1.00080302.00050703@astro.unistra.fr" alt=""><br>
<br>
<br>
Le 13/05/2016 10:37, Marco Molinaro a écrit :<br>
</div>
<blockquote
cite="mid:CABiOC751b0Y9aWsM72iQROAv9J+vtGtcAY5TBoeMEw58Oo=Qqg@mail.gmail.com"
type="cite">
<pre wrap="">Hi all,
I copy the idea of a Note, but warn against making this a standard,
otherwise we'll end up standardizing all possible serializations of
the models exposed by REC-output plus VOTable.
I also think that the note effort shouldn't stop at TAP benefit, it
should be a bit broader in the direction Pat's suggesting.
So the difficult thing will be: choose the correct compromise between
the lightness that JSON provides and the richness the XML/VOTable can
contribute. (I know, it's a trivial statement, but melius abundare
quam deficere)
Also, there are many places JSON is showing up in the VO, not only in
responses...maybe we should keep this in mind too.
Cheers,
Marco
2016-05-13 10:22 GMT+02:00 Stelios Voutsinas <a class="moz-txt-link-rfc2396E" href="mailto:stv@roe.ac.uk"><stv@roe.ac.uk></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Brian and DAL.
Our approach matches your minimal version, and we have a client that runs a TAP request in JS, so I see a good case for JSON as an alternative option to VOTable.
If we were to standardize, I would be cautious of over complicating it and having it lose the simplicity,which is the main reason why we are using it in the first place.
There probably are cases that I have not thought about however, so I'd be interested to see other implementations as well.
So +1 from me for adding a note for this.
Cheers,
Stelios Voutsinas
________________________________________
From: <a class="moz-txt-link-abbreviated" href="mailto:dal-bounces@ivoa.net">dal-bounces@ivoa.net</a> [<a class="moz-txt-link-abbreviated" href="mailto:dal-bounces@ivoa.net">dal-bounces@ivoa.net</a>] on behalf of Van Klaveren, Brian N. [<a class="moz-txt-link-abbreviated" href="mailto:bvan@slac.stanford.edu">bvan@slac.stanford.edu</a>]
Sent: Thursday, May 12, 2016 4:17 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:dal@ivoa.net">dal@ivoa.net</a>
Subject: IVOA LSST talk and JSON format for TAP
Apologies if this goes through multiple times... this internet is quite flaky.
Hi all,
If you are interested in my presentation about LSST and TAP/ADQL, i've uploaded the PDF to dropbox right now (until I can get it on the wiki):
<a class="moz-txt-link-freetext" href="https://www.dropbox.com/s/l89mpih9dmk2q3a/LSST_DAX_IVOA_Interop_May-2016.pdf?dl=0">https://www.dropbox.com/s/l89mpih9dmk2q3a/LSST_DAX_IVOA_Interop_May-2016.pdf?dl=0</a>
Also, not sure if I'm going to make it to the meeting later, I need to take care of a few things for work as people in the US wake up and need a decent connection.
That said, if you end up talking about JSON, I was just going to post my example JSON response format for TAP and mention a few things about it:
<a class="moz-txt-link-freetext" href="https://gist.github.com/brianv0/07cf0acd83bde6f450a9">https://gist.github.com/brianv0/07cf0acd83bde6f450a9</a>
>From my perspective, there's two use cases of a JSON response for TAP.
1. A 1:1 (or near to it) alternative to VOTable.
2. A simplified/minimal version intended to be very easy to use from Javascript.
For the first case, the output of something like that might look like the link above.
For the second case, a minimal representation might look like this:
{
"columns": [
{"name":"foo", "datatype":"int"},
{"name":"bar", "datatype":"long"}
{"name":"baz", "datatype":"double"}
],
"data" : [
[ 1, "1.12", 2.123]
[ 2, "1.34", 2.345]
[ 3, "1.56", 2.678]
]
}
This is extremely easy to deal with via javascript.
i.e:
var table = $(/* call TAP here via jquery */);
table.columns.forEach(function(i){ console.log(i.name)}); // log names
table.rows.forEach( doSomethingWIthRow );
So, if you end up talking about a JSON format, please consider these two potential use cases.
Thanks,
Brian
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>