jmc icon indicating copy to clipboard operation
jmc copied to clipboard

[FEATURE_REQUEST] `stringify` (or similar keyword) after JSON definitions

Open Nico314159 opened this issue 7 months ago • 0 comments

Description

The following syntax will be used to convert specific paths inside a JSON definition from nested objects to string form. The purpose of this is to have an easy and effective way of breaking SNBT over mutliple lines that doesn't insert \n and \t into the output file.

new json_file_type(name) {
        path1: {...},
        path2: {...},
        ...
} stringify (path1, path2, ...);

Discord link over previous discussion

Nico314159 avatar Jul 14 '24 18:07 Nico314159