 
     //If the JSON object failed to parse, inform the serial interface and return
     if (!root.success()) {
-      sendJson("error", "Parsing JSON failed");
+      sendJsonString("error", "Parsing JSON failed");
       newData = false;
       return;
     }

#include <PinChangeInt.h>
#include <Servo.h>

//Sets the max char array size for JSON serial input and output
const byte CHAR_ARRAY_SIZE = 235;

//Pulse threshold values for receiver input for cutover between auto and manual control
const byte CUTOVER_BUFFER = 125;

//Number of cutover samples to use for cutoverInAverage
const byte CUTOVER_SAMPLES = 10;

//Byte flags used to store whether there is an update from a given input
const byte FLAG_AILERON = 1;

    aileronInStart = micros();
  } else {
    aileronInValue = (uint16_t) (micros() - aileronInStart);
    receiverInputFlags |= FLAG_AILERON;
  }
}

