I tried utilizing json.k in a hackathon this weekend and it was easy to use. Saving a table as a json file was more difficult.
can ‘save’ output json? http://code.kx.com/wiki/Reference/save
I tried modding q.k but did not succeed… save calls .h.tx calls .h.jd
jd:{.j.j 0:x} /.j.j from http://kx.com/q/e/json.k
tx:csv
txtxml
xls`json!(cd;td;xd;ed;jd);
q)x:(letter:
a
b;number:1,2)q)save `x.json
k){$[1=#p:`\:*|`\:x:-1!x;set[x;. *p]; x 0:.h.tx[p 1]@.*p]}
'type
0:
`:x.json
+`letter`number!(`a`b;1 2)
q.q))