Sending JSON to client and execute JavaScript function from Vaadin 10

Hi Vaadin, I am new to vaadin and walkthrough the tutorial. Is there any way using Vaadin Flow to send JSON data to browser and trigar some javascript function?
The JSON will have some coordinate numbers and at client JS function will draw on canvas.