Extract data from a HTML table and convert to JSON
Here is an answer using Jsoup and JSON as dependencies: Output (formatted):
Technical answers from my Stack Overflow history, with source links and licenses.
Showing 8 of 8 answers tagged arrays
Exported May 9, 2026
Here is an answer using Jsoup and JSON as dependencies: Output (formatted):
Without using a List or Set or any third party library (Java 101 homework ready): Output: Using Set : Using List :
You need to escape the original special character:
If I understand correctly, you want the output to be like the second JSON array in your question. Changing where you loop should do the trick: I tested with the input you have. Here is the formatted JSON output:
It is called JSON, not JSCON. The code you posted is JavaScript, not PHP. Here is an example of how you could read the JSON you provided with PHP: This will print each goalie's name.
A getter should not be static. I made some modifications. This should work:
Does your class extend LinkedList ? If so, here is what I would do: It isn't a great idea to extend LinkedList. If you want an easy way to create a new LinkedList with elements use the following method: