Profile

Cover photo
JSON-stat
1,731 followers|48,944 views
AboutPosts

Stream

JSON-stat

Shared publicly  - 
 
Support for JSON-stat at the Finnish National Institute for Health and Welfare

We recently received this tweet by Aleksi Yrttiaho:

"Just added non-documented json-stat support to a Finnish statistical repository with over 2000 indicators"

https://twitter.com/aleksiyrttiaho/status/446561785978839040
1
1
Xavier Badosa's profile photoJSON-stat's profile photo
Add a comment...

JSON-stat

Shared publicly  - 
 
JJT v. 0.6.2 is out!

V. 0.6.2 of the JSON-stat Javascript Toolkit corrects a bug in the Data() method that arose when the dataset didn't have status information.

https://github.com/badosa/JSON-stat/issues/4
1
1
Xavier Badosa's profile photo
 
It's worth noting that only .Data(number) and .Data(array) were affected (two not very frequently used options).

The more popular .Data(object) was not affected. (For example: .Data({sex: "f", age: "40", country: "tv", year: "2012"}.)

This explains why the bug remained undetected for so long.
Add a comment...

JSON-stat

Shared publicly  - 
 
JSON-stat Format Viewer

Now you can browse the content of a JSON-stat response with the JSON-stat Format Viewer.

http://json-stat.org/format/viewer/

#json   #stats   #api   #format   #standard   #exchange   #dissemination   #viewer   #opendata  
1
1
Xavier Badosa's profile photo
Add a comment...

JSON-stat

Shared publicly  - 
 
Again, a choropleth map in two lines of code (thanks to JSON-stat and Visual).
 
Norway's Population Choropleth Map

This code is based on the Norway JSON-stat API and Idescat Visual.

The visualization uses the default Visual "filter" option (0.05) to avoid getting an all-white map (Norwegian population is concentrated in a few municipalities).

http://bl.ocks.org/badosa/7856244
4
2
Dmitriy Belyaev's profile photoDusty Wilson's profile photo
Add a comment...
In their circles
1,902 people
Have them in circles
1,731 people
Roberto Antonio Berrospe Machin's profile photo
praveenkumar k's profile photo
Harm Wouter Snippe's profile photo
Ben Whyall's profile photo
Ivan Atanassoff's profile photo
Victorino Henández Ruiz's profile photo
Ruben Hernandez Jr's profile photo
Lars Nielsen's profile photo
Reina McCuskey's profile photo

JSON-stat

Shared publicly  - 
 
JSON-stat as a collection pattern format

JSON-stat currently faces these three options in the collection front:

1) Improve the current collection capabilities of JSON-stat by adding its own hypermedia elements. Example:
 
http://json-stat.org/samples/hypermedia/

2) Improve the current collection capabilities of JSON-stat by adding hypermedia elements from existing standards:
 
Cj: http://json-stat.org/samples/api/
HAL: http://json-stat.org/samples/api/?hypermedia=hal

3) Do not use JSON-stat for collections but an existing collection format and embed JSON-stat representations in it. Example:

http://json-stat.org/samples/api/?hypermedia=cj

1), 2) or 3) ?

Join the discussion:

https://groups.google.com/d/msg/json-stat/GjlGHJiVJoo/A_wHuKYoHIEJ
1
1
Xavier Badosa's profile photo
Add a comment...

JSON-stat

Shared publicly  - 
 
 
Units added to the JSON-stat viewer

The JSON-stat viewer now displays units if present in metric dimensions.

http://json-stat.org/format/viewer/

Example:

http://json-stat.org/format/viewer/?uri=http%3A%2F%2Fjson-stat.org%2Fsamples%2Fus-gsp.json

According to the specs

http://json-stat.org/format/#unit

a unit property can be used to assign unit of measure metadata to the categories of a dimension with a metric role. The actual unit properties are not closed in the specs (they only contain an open list of possible properties based on current standards and practices). The JSON-stat viewer will list any non-blank unit property found in the document.
1
Add a comment...

JSON-stat

Shared publicly  - 
 
For Xmas, JSON-stat iXmaps!

Check the following long URL.

http://maps.ixmaps.com/ui/dispatch.htm?ui=embed&basemap=ll&maptype=ArcGIS%20-%20Topo&minimal=1&toolbutton=1&logo=1&svggis=../../maps/svg/maps/world_base_ISO2/world_ISO2.svgz&story=null&bookmark=map.Api.doZoomMapToGeoBounds(34.55890675634264,-4.438476505469765,57.03256010250287,46.977539005469765);map.Api.setScaleParam(%7B%27featureScaling%27:1,%27borderScaling%27:0.1,%27lineScaling%27:1,%27labelScaling%27:1,%27objectScaling%27:1.7777777777777777%7D);map.Api.newMapTheme(%27World_countries_shp0%27,%272003%7C2004%7C2005%7C2006%7C2007%7C2008%7C2009%7C2010%7C2011%7C2012%7C2013%7C2014%27,%27%27,%27type:CHART%7CBAR%7C3D%7CSPACED%7CTRENDLINE%7CEXPAND%7CEQUIDISTANT%7CZEROISVALUE%7CNEGATIVEISVALUE;colorscheme:12%7CRGB(221,221,255)%7CRGB(136,136,255)%7Cnull%7Cnull;dfilter:0;evidence:isolate;shadow:true;dfilter:0;dbtable:themeDataObj;dbtableType:jsonstat;dbtableUrl:http://json-stat.org/samples/oecd-canada.json;itemfield:OECD%20countries,%20EU15%20and%20total;lookupfield:OECD%20countries,%20EU15%20and%20total;units:;title:OECE%20statistics;snippet:Unemployment%20rates%202003%20-%202014;sizevalueunits:;scale:1;aggregation:mean;%27);

Did you notice the dbtableType and dbtableUrl parameters?

dbtableType: jsonstat

dbtableUrl: http://json-stat.org/samples/oecd-canada.json

This iXmaps map takes the JSON-stat file

http://json-stat.org/samples/oecd-canada.json

and displays the data in the OECD dataset.

iXmaps is a framework to build interactive web maps. It provides tools to create map overlay resources in SVG, KML or JSON and a Javascript library to display, animate and mash the generated resources.
1
3
Xavier Badosa's profile photoJordi Marti's profile photo
Add a comment...

JSON-stat

Shared publicly  - 
 
JSON-stat sample code

The examples page of the JSON-stat Javascript Toolkit keeps growing:

https://github.com/badosa/JSON-stat/wiki/Examples

Learn JSON-stat by example!
1
1
carlo cancellieri's profile photo
Add a comment...

JSON-stat

Shared publicly  - 
 
Summary of hypermedia options

1) A Collection+JSON- or Siren- inspired approach
2) HAL
3) "href"

1) 2) or 3) ?

https://groups.google.com/d/msg/json-stat/w6wV0f9e1Bg/tjLVafb4oNsJ
1
1
Xavier Badosa's profile photo
Add a comment...
Story
Tagline
A simple light standard for all kinds of data disseminators
Introduction
The main statistical standards for data and metadata exchange are XML-based: they are usually complicated and verbose: probably not best suited as an exchange format for apps.

JSON-stat (json-stat.org) is a simple lightweight JSON format to disseminate data using a cube (=tabular) model.