using the new Json classes for bgrive