eval on key path was being attempted on encoded string instead of object