json with socket works