Issues with juce var

Hi!

I’m trying to create a simple class with static methods to parse my JSON file. What I’d like to do is to declare a static juce::var, which is initialized by calling the juce::JSON::parse() method in the .cpp file.
Then, I want to declare my static methods that call the static juce::var object and return a corresponding value based on the String that the method receives as input.

By doing this, I get an error in the destructor of juce::var. Am I wrong something? Is there a way to declare and initialize a static juce::var?