From 5etools Community Wiki
Jump to: navigation, search

How does this thing work?

Honestly, for the most part - it works just by existing. Its mostly used for reference. Giving insight on how the JSON is formated, and what tags are possible in the site's existence. It allows you to plan on how to implement the content you wish to add, or modify it in the way you intend.
Review the rendered content and find the action/element you'd like to include within your own homebrew; in the left-hand panel, CTRL+F and search for a text string from that rendered element. Read the converted description, review the code in which its function is defined and used, then attempt to build your own using that section as a foundation to work from.

It just returns a blank screen?!

When you insert your JSON into the renderer code panel, the updated render just clears the text from the renderer/information panel.
What is happening:
Your code likely is rendering correctly; but data sets (for an eample "items": [) are not supported to render directly, instead you've just defined data versus asking it to render a portion of that data. You'll need to remove the leading declaration and its brackets [ ] to test to confirm that though.

It won't show my item/feat/trap/hazard/vehicle/book... custom JSON

See prior question's answer

What does "Invalid JSON! We recommend using JSONLint" mean?!

When I put the code in, it doesn't seem to change anything and instead by the Render Button, I see "Invalid JSON! We recommend using JSONLint.".
What that means:
Your JSON code fails at validation, which often means :
  • you have a missing character to open or close a entry. --> all { } & [ ] need to be paired
  • an extra or missing , --> the last line of an entry, if no additional data follows shouldn't have a comma, if more data will follow, it needs the comma.