IVOA LSST talk and JSON format for TAP

Walter Landry wlandry at caltech.edu
Fri May 13 09:18:57 CEST 2016


Grégory Mantelet <gmantele at ari.uni-heidelberg.de> wrote:
> Hi Brian and DAL,
> 
> In the CDS/ARI TAP-Library, I also provide for some time now a JSON
> output. Let just me share as well the syntax I have chosen for this
> output format:
> 
> 
> {
>     "metadata":[
>         {"name":"...","description":"...","datatype":"...","arraysize":"...","xtype":"...","unit":"...","ucd":"...","utype":"...},
>         ...
>     ],
>     "data":[
>         [valueCol1, valueCol2, ...],
>         ...
>     ]
> }

We also have our own JSON serialization.  It is based on Boost Property Tree

  http://www.boost.org/doc/libs/1_60_0/doc/html/property_tree/parsers.html#property_tree.parsers.json_parser

It does not have any special knowledge of VOTables.  There is an
example below.  I think there is some value in marking that the table
is semantically equivalent to a VOTable.

Cheers,
Walter Landry



{
    "VOTABLE":
    {
        "<xmlattr>":
        {
            "version": "1.3",
            "xmlns:xsi": "http:\/\/www.w3.org\/2001\/XMLSchema-instance",
            "xmlns": "http:\/\/www.ivoa.net\/xml\/VOTable\/v1.3",
            "xmlns:stc": "http:\/\/www.ivoa.net\/xml\/STC\/v1.30"
        },
        ...
        "RESOURCE":
        {
            "<xmlattr>":
            {
                "type": "results"
            },
            "INFO":
            {
                "<xmlattr>":
                {
                    "name": "QUERY_STATUS",
                    "value": "OK"
                }
            },
            "TABLE":
            {
                "FIELD":
                {
                    "<xmlattr>":
                    {
                        "name": "cntr",
                        "datatype": "int"
                    }
                },
                ...
                "DATA":
                {
                    "TABLEDATA":
                    [
                        [
                            "224910226",
                            "s",
                            ...
                        ]
                    ]
                }
            }
        }
    }
}


More information about the dal mailing list