Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

What is the difference between the scripts .js and .json?

Yep, that's my question...
1422634555

Edited 1422634930
The Aaron
Pro
API Scripter
.js == A Javascript file. This is an actual API script, and the only thing you really care about at this point. Copy the source into a tab on your API page and game on! .json == A Javascript Object Notation file. This is a portable data interchange format (designed by my JS hero: Douglas Crockford!). It's a way to encode data in a machine readable format, but in this case is also very human readable. The package.json file describes the API script in a way that it is possible to write a system to interrelate all the API scripts. Roll20 Devs plan to use this information to provide an automated Script installation system later on down the road. At this point, you can completely ignore it (unless you're writing scripts). =D
Thanks Aaron