I'm trying to send JSON data from html to javascript function.
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8' />"
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel=\"stylesheet\" href=\"roboto.css\">
<link rel=\"stylesheet\" href=\"webViewLightTheme.css\">
</head>
<body>
<img src=\"http://x.y.z/wp-content/uploads/2017/12/android-smart-text-selection-350x175.jpg\" onClick=\"window.JavaScriptInterface.showImages( \"[{\"name\":\"John\",\"age\":30,\"city\":\"New York\"}]\" );\" />"
</body>
</html>
But on image click I'm getting this Uncaught SyntaxError: Invalid or unexpected token
I want to know how to send JSON data from html part to javascript part.