Discuss Scratch

The_Grits
Scratcher
1000+ posts

Anyone know how to get the JSON file?

Hey everybody,

I'm trying to get the JSON file of one of my projects, but I can seem to get it.
I've tried downloading the project, renaming it to a .zip file, then unzipping it, but it makes a jumbled file of random/invalid characters.

I've also tried using the API, only to remember that it doesn't work anymore with the API update.

Can someone help me?

The_Grits
ChocolatePi
Scratcher
1000+ posts

Anyone know how to get the JSON file?

It should work. I made a topic about this a few weeks back. Lemme find it.
Znapi
Scratcher
500+ posts

Anyone know how to get the JSON file?

It sounds like you actually opened the SB2 in a text editor while it was still zipped. Do you have your file browser set to show file extensions?
Icely
Scratcher
100+ posts

Anyone know how to get the JSON file?

The_Grits wrote:

Hey everybody,

I'm trying to get the JSON file of one of my projects, but I can seem to get it.
I've tried downloading the project, renaming it to a .zip file, then unzipping it, but it makes a jumbled file of random/invalid characters.

I've also tried using the API, only to remember that it doesn't work anymore with the API update.

Can someone help me?

The_Grits
You need to download the file as a .zip, not download it as sb2 then converting it.
djdolphin
Scratcher
1000+ posts

Anyone know how to get the JSON file?

Icely wrote:

You need to download the file as a .zip, not download it as sb2 then converting it.
.sb2 files are just renamed .zip files. When you rename it back to .zip doesn't matter.
Ethan_1
Scratcher
100+ posts

Anyone know how to get the JSON file?

The_Grits wrote:

Hey everybody,

I'm trying to get the JSON file of one of my projects, but I can seem to get it.
I've tried downloading the project, renaming it to a .zip file, then unzipping it, but it makes a jumbled file of random/invalid characters.

I've also tried using the API, only to remember that it doesn't work anymore with the API update.

Can someone help me?

The_Grits


If you give us the project, we can probably look at it.
DrKat123
Scratcher
1000+ posts

Anyone know how to get the JSON file?

Download the project, rename the project's file extension to .zip
Exampe:
some_random_project_m8.zip

Then unzip the file.
Then check the content for the .json file
Dylan5797
Scratcher
1000+ posts

Anyone know how to get the JSON file?

The_Grits wrote:


I've also tried using the API, only to remember that it doesn't work anymore with the API update.

Yes it does, what api url are you using?

Last edited by Dylan5797 (Feb. 5, 2016 02:22:38)

-Io-
Scratcher
1000+ posts

Anyone know how to get the JSON file?

Dylan5797 wrote:

The_Grits wrote:


I've also tried using the API, only to remember that it doesn't work anymore with the API update.

Yes it does, what api url are you using?
http://projects.scratch.mit.edu/internalapi/project/(PROJECTID)/get/
This one works for me :P
Thepuzzlegame
Scratcher
1000+ posts

Anyone know how to get the JSON file?

Can you post the exact steps you took?
The_Grits
Scratcher
1000+ posts

Anyone know how to get the JSON file?

Thepuzzlegame wrote:

Can you post the exact steps you took?
For the web attempt:
https://scratch.mit.edu/api/v1/project/96683774/?format=json

For the file attempt:
Download from online editor
Saved file
Renamed file to .zip file
Tried unzipping, but it just opened my text editor with random characters.

-Io- wrote:

Dylan5797 wrote:

The_Grits wrote:


I've also tried using the API, only to remember that it doesn't work anymore with the API update.

Yes it does, what api url are you using?
http://projects.scratch.mit.edu/internalapi/project/(PROJECTID)/get/
This one works for me :P
That worked! Thanks!
Thepuzzlegame
Scratcher
1000+ posts

Anyone know how to get the JSON file?

The_Grits wrote:

Thepuzzlegame wrote:

Can you post the exact steps you took?
Download from online editor
Saved file
Renamed file to .zip file
Tried unzipping, but it just opened my text editor with random characters.
Glad to see you've got things to work with the api.

Maybe you just misclicked edit with notepad++ (or something along those lines) instead of extract? ;D
DrKat123
Scratcher
1000+ posts

Anyone know how to get the JSON file?

The_Grits wrote:

For the file attempt:
Download from online editor
Saved file
Renamed file to .zip file
Tried unzipping, but it just opened my text editor with random characters.

Thepuzzlegame wrote:

Maybe you just misclicked edit with notepad++ (or something along those lines) instead of extract? ;D
^^ is possible
The_Grits
Scratcher
1000+ posts

Anyone know how to get the JSON file?

Thepuzzlegame wrote:

The_Grits wrote:

Thepuzzlegame wrote:

Can you post the exact steps you took?
Download from online editor
Saved file
Renamed file to .zip file
Tried unzipping, but it just opened my text editor with random characters.
Glad to see you've got things to work with the api.

Maybe you just misclicked edit with notepad++ (or something along those lines) instead of extract? ;D
Haha, no. Try ChromeOS attempting to make me go insane.
If you double click on a normal .zip file in ChromeOS, it unzips it. But with this one it just opened my text editor. Even if I right click for more options on the .zip file it will not let me unzip it.
LiFaytheGoblin
Forum Moderator
1000+ posts

Anyone know how to get the JSON file?

Closed on request of topic owner

Powered by DjangoBB