0
Depending on the URL I use, data from Javasscript changes.
If I use the url: meusite.com/jogador/123
, Javascript will bring you player data 123, if I change player 123 to 456, Javascript below will bring player statistics 456.
<script type="text/javascript">var imp_careerStats = [
{
"id": "0c8d010d-9d47-4f10-805e-544ae89996b9",
"playerId": "67059891",
"mode": 4,
"type": 2,
"lastUpdated": "2019-06-09T17:00:51.7847614Z",
"kills": {
"value": 1,
"key": "Kills",
"percentile": 92.0,
"displayName": "Kills",
"displayType": "Number",
"category": "Combat",
"columnName": "kills",
"displayValue": "1",
"displayPercentile": "Top 8%"
},...
</script>
How I can turn this Javascript into JSON?
Your question is very confusing, try to improve it.
– user148754
See if it looks better for you now. What I need is to take the data of this javascript that is on another site and be able to use it, ideally put it as json
– Ronny Rolim
Comes with the tag
<script type="text/javascript">
and all?– Sam
yes, come complete, I copied and pasted the example.
– Ronny Rolim