json - new approach

Introduced new Json class and tested it properly.