Added getJson method to Parser class