Skip to content

g0ofycat/json_to_lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

json_to_lua

mainly used to convert trained weights and biases to module scripts in roblox (basically only for me bc who tf is doing this)

Example

#include "path\to\json_to_lua.h"

int main() {
    json_lua_converter converter;

    // JSON Input Path, Lua Converted File Output Path, Write table as Key-Value Pairs, Amount of indents (Spaces)
    converter.convert_json_lua("path/to/file.json", "path/to/converted.lua", false, 4);

    return 0;
}

includes test cases in json_files and output files in lua_files. (kv pairs off)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors