Create JSON socket, need to be tested