fix build scripts to use JSON library
starting to communicate with server