Ben
Ben

Reputation: 5777

Trying to find out what format data is in

looking to find out what format this data is in. I thought it was JSON, but after trying json_decode() on it, nada happened.

Data in question:

https://www.habbo.com/gamedata/furnidata/aaba20347c4f45c1e1818e06a3daea617999c2c4

Upvotes: 0

Views: 61

Answers (1)

Xyz
Xyz

Reputation: 6013

It is a plain/text format consisting of json arrays, separated by line breaks.

You could do

$lines = file('https://www.habbo.com/gamedata/furnidata/aaba20347c4f45c1e1818e06a3daea617999c2c4');
foreach ($lines as $line) {
    var_dump(json_decode($line));
}

Upvotes: 1

Related Questions