speedtables icon indicating copy to clipboard operation
speedtables copied to clipboard

Add direct JSON return of search results

Open lehenbauer opened this issue 12 years ago • 0 comments

Using yajl or whatever, add a direct JSON return capability. It can be a direct C-to-C thing and since type inspection from C is trivial and fast we can generate the JSON with fidelity. The Tcl interpreter wouldn't even need to be invoked for each match.

Something like... $table search -compare [list [list > clock $val]] -json varName

...to get the json into a var. You might want a -jsonfp or something, to write directly to a file handle or socket.

lehenbauer avatar Jun 12 '12 07:06 lehenbauer