MV Would it be possible to define notetags from a separate JSON file?

To preface this, while I am still fairly new to JavaScript, I have enough coding knowledge from working with other formats to get a general sense of most terms. That said, anything beyond the basics of defining objects, functions, etc. is something I'm still making the transition to, so I apologize in advance if anything goes over my head initially.

Anyway, while I've quickly been learning how useful notetags are for working with plugins, I've also been finding it incredibly annoying to work with them inside of the database itself, especially if they include JavaScript statements. It's to the point that I've taken to writing out and editing the notetags in a separate text editor, then copying and pasting them into the respective notes section of the database when I'm finished. Of course, this means that if I'm trying to tweak or troubleshoot the contents of a note, I have to be constantly swapping between the two. I suppose the alternative is to edit the values in the JSON file directly, but I've found that this can get messy if I have a large number of entries to navigate. I would much rather be able to view just the note sections for entries where I've actually entered notes.

So my question is whether it's possible to cut out the middleman and create a script that lets me define the note sections in a separate JSON file, then have them be pushed to the respective note sections of the existing JSON files directly. That way it would negate any additional noise created by other information already present in the existing JSON file, and I wouldn't need to be constantly going back and forth between my text editor and the database.

From what I've learned so far, it seems that I will need to be able to:
  1. Read the original JSON file
  2. Read the custom JSON file
  3. Locate the objects in each file that correspond to the ID of the entries I want to edit (for example, an Actor ID) if both exist
  4. Locate the "note" value in those matching object
  5. Write the contents of that value in the custom file to the original file without overwriting the entire object/file

This might be a very convoluted way of solving my issue, but if it's something that can reasonably be accomplished (or even better, has already been done in a plugin) then it would make my life much easier.
Yes it is possible.

You could simply write all the notes in a custom JSON file (while properly noting elements in a way you can easily associate it with the corresponding skill), read that file, and then you'd need to modify the the game code to replace the notebox in $dataSkills by the note from your JSON file. Of course, if you redo the skill system to incorporate properties from your JSON file it would ideal since bypassing the eval() function can help for performance, but it's not to a point it's gonna make a huge difference since it's a 2D rpg maker game.
My goal is to keep it compatible with various plugins that rely on notetags, so I don't think it's feasible to incorporate all of those into the skill system. Really I supposed the goal is just to create a space where I can view and edit notetag code without worrying about sorting through the database or accidentally messing with other values in the object.

Anyway, would I be right in assuming the "DataManager.onLoad" function is what I would need to modify in order to make that work? It seems to be where note data is read from.
Yeah it seems so.
I think you're looking at this from the wrong direction, and as a result make it more complex than neccessary.

The whole purpose of the notetags is a direct assignment between them and the database objects - the notebox was originally never meant to do that, it was supposed to be for notes of the developer on the game development, never to be processed in-game.
It's just that this was an easy way for a non-programmer to assign data to anything in the database while the database itself was fixed.

when you are already manipulating the onload functions to redirect to other files, then you can simply ignore everything official.

change the onLoad in such way that the internal storage of the notetag after loading is a combination string of something loaded from a different file and the original notebox from the editor database.

then define the "different file" to contain an identifier which dataobject the textstring gets added to, plus a text string containing what you want to add to the notebox.

you need to take care to have unique identifiers, probably a two letter code for the database tab followed by the official ID (like AC0001 for actor ID 1, WP0102 for weapon id 102 and so on), but then you can add your own text file to whereever you want in the database and it will still stay compatible as long as your additions are loaded before the plugin that you want to be affected by them.

Original thread: https://forums.rpgmakerweb.com/threads/would-it-be-possible-to-define-notetags-from-a-separate-json-file.153460/