Server: refactored json convertation. Now we have a new module for it