PlatformiIO not upgrading libraries

What is ArduinoJson? Why did you declare it as the built-in library? Do you mean this library?

If yes, please check the “Installation” section. The valid declaration for the external package hosted in the PlatformIO Registry is %owner%/%libraryName%.