README.markdown in remote_table-3.3.0 vs README.markdown in remote_table-3.3.2
- old
+ new
@@ -116,10 +116,15 @@
<tr>
<td>XML</td>
<td>The idea is to set up a <code>:row_[xpath|css]</code> and (optionally) a <code>:column_[xpath|css]</code>.</td>
<td><a href="http://nokogiri.org/">nokogiri</a></td>
</tr>
+ <tr>
+ <td>JSON</td>
+ <td>Force JSON format using <code>format: :json</code> and define root nodes using <code>root_node: 'data'</code></td>
+ <td><a href="http://www.ruby-doc.org/stdlib-2.0.0/libdoc/json/rdoc/JSON.html">JSON</a></td>
+ </tr>
</table>
## Compression and packing
You can directly pick a file out of a remote archive using <code>:filename</code> or use a <code>:glob</code>.
@@ -333,9 +338,12 @@
:transform => { :class => NaturalGasParser })
# 2005 EIA Residential Energy Consumption Survey microdata
RemoteTable.new('http://www.eia.doe.gov/emeu/recs/recspubuse05/datafiles/RECS05alldata.csv',
:headers => :upcase)
+
+ # Public albums from the Facebook Engineering Team
+ RemoteTable.new('https://graph.facebook.com/Engineering/albums', format: :json, root_node: 'data')
# ...and more from the tests...
RemoteTable.new 'http://spreadsheets.google.com/pub?key=t5HM1KbaRngmTUbntg8JwPA&single=true&gid=0'