check get and post vars + jsonify