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

Problems with Importing and Exporting JSON Files

January 23 (4 years ago)

Edited January 23 (4 years ago)

Hello Community !

Recently I'm fiddling with the export and import functionality of Character Sheets in Roll20. I'm playing The Dark Eye and there is an easy to use character creation app written by a fellow member of our community. It exports the Data into a .JSON File, but we've tried to import these JSON Files into Roll20 and it doesn't seem to work. Roll 20 Errors: "Unknown schema version: undefined"

Would you know how we could make our App .JSON Files compatible with the Roll20's .JSON File importer? Or would you know any workaround on how we could connect the App onto Roll 20 ?

Any help would be much appreciated !

Have a great day !
January 23 (4 years ago)
GiGs
Pro
Sheet Author
API Scripter

Roll20 doesnt have a JSON importer. Are you using a browser extension? If so, you'll have to take it up with the writers of that extension.

January 23 (4 years ago)
Andreas J.
Forum Champion
Sheet Author
Translator

GiGs said:

Roll20 doesnt have a JSON importer. Are you using a browser extension? If so, you'll have to take it up with the writers of that extension.

There are a couple of character sheets that have built-in sheet import/export functions, such as the two Shadowrun 5E sheets, and IIRC Pathfinder 1E Community & one Savage Worlds sheet also had those options.

Think there exist one or to Roll20 API designed for importing specific sheet as well.

In any case, in the rare case a sheet has an import function, you need to look for more info with the individual sheet or it's author.

January 23 (4 years ago)

Alright, yes I'm using Roll20ES. Thanks for the tips, gonna write Roll20ES Devs then.

Have a good one !

January 24 (4 years ago)
Oosh
Sheet Author
API Scripter

JSON is basically a syntax for storing an array, or object, or combination of the two in a file. The actual data structure is completely up to the person coding the exporter, and unless they specifically wrote it for the r20es importer, it would be a one in a million chance for the data to be organised the same way. That r20es importer only reads JSON's exported by the r20es exporter.

The person who wrote the Dark Eye exporter will need to incorporate a r20es structure if you want it to be compatible, or write another script to convert the JSON and add the schema_version key & value that r20es is expecting.