bug fix.  Any valid json can now be passed into sendJSON()