Skip to content

Quirks of the Visual JSON Editor

devyndamonster edited this page Mar 25, 2021 · 4 revisions

The Visual JSON Editor can be an extremely useful tool for building your character files. It takes the plain text of a JSON file, and allows you you to edit it with a simple GUI. However, it is not without some quirks, and so I recommend reading through this article if you plan on using it.

Known Quirks

1. Null Objects

When editing one of the default character files, you might run into a case where you want to expand an object, but are unable to.

This happens when the underlying object is actually null in the JSON file

There are two options to deal with this issue:

  1. Replace the null with {} in the JSON file, and reopen it in the editor. This will allow you to expand the object, but everything within the object will also be null, so fixing this issue for objects within objects can be tedious.
  2. Use the PopulatedCharacterTemplate.json as a base for your character. This file is generated within the TNH_Tweaker folder, and has all necessary fields filled out so you won't run into any objects that can't be expanded.

2. Null Fields

When the Visual JSON Editor creates a new object, all of the fields of that object are blank. For some variables, such as strings, this is perfectly fine. However, things like integers and enums get converted into null, which causes the character to be unreadable.

The only fix in this situation is to make sure that all numerical fields and enums have a value set (such as 0)

Clone this wiki locally