added json abstraction. Now program can be built for qt 4.6+ and not only 5.0+