Updated packet classifier to take a JSON inpu