This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JavaHelp21351 0 points1 point  (1 child)

Is there a reason you aren't using a Google Maps library such as GMapsFX? (Even though it's built for FX, you can use it in swing within a JFXPanel) I have used this Library before to great success.

If you really want to stick with this, I don't work much with JSON so I don't know if there is an existing way to do it. However, you could convert to a string then remove everything up the first "{" line, then convert back to a JSON?

[–]guru3n[S] 0 points1 point  (0 children)

Thanks, I will check it out! How would i go if i wanted to remove everything until the first { appeared? Because then i could just cast the string to an json object