public function encodeArray($array)
    {
        $newArray = [];
        foreach ($array as $key => $val) {
            $newArray[\camel_case($key)] = $this->encodeJson($val);
        }
        return $newArray;
    }