Revision 14598
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/tnrs.py | ||
---|---|---|
253 | 253 |
data_gwt, = parse_response('expand', r'^//OK\[1,\["(.*)"\],0,7\]$', |
254 | 254 |
response, response, response_info) |
255 | 255 |
data_json = json.loads(gwt_decode(data_gwt)) |
256 |
raise NotImplementedError() |
|
256 |
debug_log('JSON data', strings.urepr(data_json)) |
|
257 |
output_stream = csvs.InputRewriter( |
|
258 |
csvs.RowNumFilter( |
|
259 |
csvs.JsonReader(data_json['items'], json_cols[1:]), |
|
260 |
json_cols[0] |
|
261 |
) |
|
262 |
) |
|
257 | 263 |
return TnrsOutputStream(output_stream) |
258 | 264 |
finally: |
259 | 265 |
profiler.stop(name_ct) |
Also available in: Unified diff
lib/tnrs.py: single_tnrs_request(): JSON mode: implemented output of JSON data