added method to json parser