# JSON for Lua **Repository Path**: upizpp/json-for-lua ## Basic Information - **Project Name**: JSON for Lua - **Description**: 为lua实现的json读取和保存库 - **Primary Language**: Lua - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-12-19 - **Last Updated**: 2024-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JSON for Lua #### 介绍 一个lua的库,用于保存和读取json文件 #### 使用说明 1. 在需要使用的地方添加 local json = require "JSON for Lua" 2. 打开文件:local file = json.open(文件路径) 3. 保存:file.save(要保存的数据,缩进(" "或"\t") 4. 加载:调用file.load()获取其返回值