Problem compiling BRUH's LED Lightstrip

I’ve tried re-installing Arduino IDE and updated all libraries etc but i keep getting and error when I hit verify on line 420

‘StaticJsonBuffer’ was not declared in this scope

Unfortunately its well beyond my blink skills. Any ideas?

/********************************** START SEND STATE*****************************************/
void sendState() {
StaticJsonBuffer<BUFFER_SIZE> jsonBuffer; // <------------THIS LINE HERE

JsonObject& root = jsonBuffer.createObject();

root[“state”] = (stateOn) ? on_cmd : off_cmd;
JsonObject& color = root.createNestedObject(“color”);
color[“r”] = red;
color[“g”] = green;
color[“b”] = blue;

root[“brightness”] = brightness;
root[“effect”] = effectString.c_str();

char buffer[root.measureLength() + 1];
root.printTo(buffer, sizeof(buffer));

client.publish(light_state_topic, buffer, true);

I have raised an issue on the GitHub page but not really getting any response.

There is a copy of the error on the issues page

Any help would be appreciated

What version of json did you install? I saw recently there was a beta update and it wouldn’t compile for me either. I went back to 5.x and it was fine.

Thanks for the quick reply. Im using version 6.0.1-beta…
Ill try downgrading.

Take note of the special note here.

digiblur, I owe you a beer or three!! I dropped back to 5.13.2 and it worked a treat!!

THANKYOU!

Not a problem! Glad to help. Now we’ve got some code to update for the new library breaking changes.