MongoDB internal data types are different for same value.
My sample document,
Ex:-
{ "val1": 120 "val2": 120 }
I am just inserting the Json data not setting any data type while inserting.
This is how I see the value in the mongo shell. But, the data types are returned as int for val1 and Double for val2.