add sendJson and error
package.json