remove useless class and delay the process of type detection to the JsonDocument