json: check if float/double is integer
json: check if float/double is integer

when converting float or double values, check that content
is integer. In such case use integer representaion to save
place and do not lost precision

Signed-off-by: Bertrand Bellenot <6715f273cb2881a3bfbd56f899a7173358fb0b89@cern.ch>

CristinaCristescu/root,lgiommi/root,zzxuanyuan/root-compressor-dummy,CristinaCristescu/root,bbockelm/root,satyarth934/root,thomaskeck/root,abhinavmoudgil95/root,Y--/root,bbockelm/root,mkret2/root,jrtomps/root,mattkretz/root,vukasinmilosevic/root,esakellari/root,mattkretz/root,agarciamontoro/root,beniz/root,lgiommi/root,abhinavmoudgil95/root,satyarth934/root,mattkretz/root,krafczyk/root,thomaskeck/root,olifre/root,omazapa/root,mkret2/root,karies/root,jrtomps/root,beniz/root,bbockelm/root,nilqed/root,beniz/root,gganis/root,vukasinmilosevic/root,gganis/root,root-mirror/root,sirinath/root,bbockelm/root,mattkretz/root,mattkretz/root,olifre/root,buuck/root,georgtroska/root,esakellari/root,root-mirror/root,arch1tect0r/root,sawenzel/root,simonpf/root,abhinavmoudgil95/root,mhuwiler/rootauto,sirinath/root,olifre/root,bbockelm/root,Y--/root,abhinavmoudgil95/root,perovic/root,agarciamontoro/root,beniz/root,esakellari/root,bbockelm/root,satyarth934/root,BerserkerTroll/root,veprbl/root,dfunke/root,arch1tect0r/root,karies/root,karies/root,root-mirror/root,veprbl/root,zzxuanyuan/root,davidlt/root,omazapa/root,vukasinmilosevic/root,lgiommi/root,vukasinmilosevic/root,buuck/root,nilqed/root,evgeny-boger/root,CristinaCristescu/root,krafczyk/root,Duraznos/root,Duraznos/root,arch1tect0r/root,zzxuanyuan/root,arch1tect0r/root,simonpf/root,agarciamontoro/root,georgtroska/root,gbitzes/root,root-mirror/root,zzxuanyuan/root-compressor-dummy,davidlt/root,zzxuanyuan/root-compressor-dummy,Y--/root,krafczyk/root,thomaskeck/root,veprbl/root,arch1tect0r/root,vukasinmilosevic/root,veprbl/root,dfunke/root,mkret2/root,dfunke/root,simonpf/root,mhuwiler/rootauto,bbockelm/root,olifre/root,thomaskeck/root,Y--/root,CristinaCristescu/root,davidlt/root,pspe/root,pspe/root,pspe/root,lgiommi/root,thomaskeck/root,zzxuanyuan/root-compressor-dummy,root-mirror/root,beniz/root,agarciamontoro/root,buuck/root,agarciamontoro/root,agarciamontoro/root,BerserkerTroll/root,BerserkerTroll/root,omazapa/root,buuck/root,davidlt/root,karies/root,omazapa/root,sbinet/cxx-root,pspe/root,zzxuanyuan/root-compressor-dummy,bbockelm/root,Y--/root,vukasinmilosevic/root,Duraznos/root,mattkretz/root,gganis/root,root-mirror/root,mattkretz/root,georgtroska/root,sawenzel/root,nilqed/root,dfunke/root,olifre/root,nilqed/root,buuck/root,veprbl/root,abhinavmoudgil95/root,georgtroska/root,gbitzes/root,arch1tect0r/root,mkret2/root,vukasinmilosevic/root,gganis/root,mattkretz/root,buuck/root,evgeny-boger/root,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,mhuwiler/rootauto,zzxuanyuan/root,root-mirror/root,satyarth934/root,veprbl/root,dfunke/root,karies/root,Duraznos/root,dfunke/root,agarciamontoro/root,sawenzel/root,zzxuanyuan/root-compressor-dummy,thomaskeck/root,zzxuanyuan/root,sirinath/root,nilqed/root,Y--/root,karies/root,abhinavmoudgil95/root,mattkretz/root,evgeny-boger/root,sbinet/cxx-root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,sbinet/cxx-root,perovic/root,agarciamontoro/root,davidlt/root,sawenzel/root,mhuwiler/rootauto,BerserkerTroll/root,satyarth934/root,BerserkerTroll/root,esakellari/root,buuck/root,georgtroska/root,krafczyk/root,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,Duraznos/root,veprbl/root,satyarth934/root,omazapa/root,Duraznos/root,sawenzel/root,pspe/root,lgiommi/root,gbitzes/root,root-mirror/root,simonpf/root,lgiommi/root,omazapa/root,mhuwiler/rootauto,gganis/root,davidlt/root,zzxuanyuan/root-compressor-dummy,perovic/root,mkret2/root,mhuwiler/rootauto,krafczyk/root,arch1tect0r/root,sirinath/root,arch1tect0r/root,lgiommi/root,simonpf/root,agarciamontoro/root,gbitzes/root,sbinet/cxx-root,sawenzel/root,Duraznos/root,sbinet/cxx-root,thomaskeck/root,karies/root,buuck/root,Duraznos/root,gbitzes/root,georgtroska/root,vukasinmilosevic/root,simonpf/root,pspe/root,krafczyk/root,sirinath/root,sirinath/root,karies/root,zzxuanyuan/root,BerserkerTroll/root,mhuwiler/rootauto,mkret2/root,mkret2/root,karies/root,krafczyk/root,zzxuanyuan/root,bbockelm/root,pspe/root,nilqed/root,thomaskeck/root,mattkretz/root,pspe/root,abhinavmoudgil95/root,bbockelm/root,perovic/root,gganis/root,CristinaCristescu/root,sbinet/cxx-root,dfunke/root,georgtroska/root,root-mirror/root,sawenzel/root,evgeny-boger/root,evgeny-boger/root,nilqed/root,CristinaCristescu/root,buuck/root,vukasinmilosevic/root,perovic/root,olifre/root,evgeny-boger/root,jrtomps/root,sirinath/root,CristinaCristescu/root,jrtomps/root,abhinavmoudgil95/root,lgiommi/root,davidlt/root,perovic/root,sbinet/cxx-root,beniz/root,jrtomps/root,nilqed/root,beniz/root,beniz/root,gbitzes/root,mhuwiler/rootauto,mhuwiler/rootauto,omazapa/root,sawenzel/root,root-mirror/root,gbitzes/root,BerserkerTroll/root,arch1tect0r/root,thomaskeck/root,mkret2/root,Duraznos/root,evgeny-boger/root,gganis/root,sawenzel/root,krafczyk/root,zzxuanyuan/root,veprbl/root,perovic/root,root-mirror/root,zzxuanyuan/root,pspe/root,sbinet/cxx-root,gganis/root,karies/root,olifre/root,sbinet/cxx-root,jrtomps/root,gbitzes/root,jrtomps/root,CristinaCristescu/root,esakellari/root,veprbl/root,simonpf/root,perovic/root,beniz/root,mkret2/root,abhinavmoudgil95/root,esakellari/root,satyarth934/root,evgeny-boger/root,jrtomps/root,georgtroska/root,zzxuanyuan/root,satyarth934/root,davidlt/root,olifre/root,Y--/root,georgtroska/root,simonpf/root,Y--/root,krafczyk/root,simonpf/root,dfunke/root,perovic/root,BerserkerTroll/root,omazapa/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,veprbl/root,krafczyk/root,esakellari/root,dfunke/root,davidlt/root,lgiommi/root,gbitzes/root,mkret2/root,sirinath/root,pspe/root,arch1tect0r/root,vukasinmilosevic/root,gbitzes/root,georgtroska/root,Y--/root,satyarth934/root,evgeny-boger/root,evgeny-boger/root,omazapa/root,esakellari/root,krafczyk/root,abhinavmoudgil95/root,sbinet/cxx-root,jrtomps/root,dfunke/root,satyarth934/root,Y--/root,simonpf/root,beniz/root,esakellari/root,BerserkerTroll/root,sirinath/root,pspe/root,nilqed/root,gbitzes/root,zzxuanyuan/root,esakellari/root,arch1tect0r/root,buuck/root,mkret2/root,esakellari/root,olifre/root,sawenzel/root,buuck/root,Duraznos/root,CristinaCristescu/root,abhinavmoudgil95/root,perovic/root,sirinath/root,lgiommi/root,davidlt/root,karies/root,BerserkerTroll/root,satyarth934/root,BerserkerTroll/root,sirinath/root,gganis/root,gganis/root,perovic/root,olifre/root,beniz/root,CristinaCristescu/root,mhuwiler/rootauto,nilqed/root,mhuwiler/rootauto,veprbl/root,simonpf/root,dfunke/root,davidlt/root,CristinaCristescu/root,Y--/root,agarciamontoro/root,sawenzel/root,bbockelm/root,sbinet/cxx-root,lgiommi/root,gganis/root,jrtomps/root,olifre/root,omazapa/root,mattkretz/root,jrtomps/root,georgtroska/root,thomaskeck/root,Duraznos/root,nilqed/root,omazapa/root,vukasinmilosevic/root