SQL to JSON

new output js of SQL to JSON, based upon the RMT.js by Jin