Added a method to load a parsetree from a JSON string.