ArduinoJson library errors on compile

Ok so I have changed the minimal example to add Wire.h and this example works.

BUT - I’m still getting the error posted in my first post, with the my sketch code inserted.

(this works ok:)
platformio.ini

[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino
lib_deps =
ArduinoJson
Ethernet
PubSubClient
LiquidCrystal
Wire

main.cpp

#include <Arduino.h>
#include “Wire.h”
#include “ArduinoJson.h”
#include “LiquidCrystal.h”
#include “PubSubClient.h”
#include “Ethernet.h”

void setup() {
}

void loop() {
}

Should I post my whole sketch here?