check out what we used here:
Convert JSON String to JSON Object and Parse all data - #4 by kll ,
websocket server client setup, lib /* Websockets 0.1b Lasse Steenbock Vestergaard */
transport a JSON record
here play again to confirm:
win 10 / processing 3.5.3 /
client server same computer ( 2 sketch running )