Module: command_meta.json
Overview
Module
Provides /json
command.
A powerful and unified tool to edit json file.
Color Boxes
Tip
Read the detailed document for Json Path
:
Example
◉ Read a json key.
Issue: /json read "config/fuji/config.json" "$.core.debug"
◉ List json keys.
Issue: /json read "config/fuji/config.json" "$.modules.keys()"
◉ Set the value of a json key.
Issue: /json write "config/fuji/config.json" "$.core.debug.log_debug_messages" BOOLEAN true
Commands
Command
- Command Syntax:
/json delete <String filePath> <String jsonPath>
- Document: null
- Can be executed by console:
true
- Required Level Permission:
4
- Required String Permission:
null
Command
- Command Syntax:
/json put <String filePath> <String jsonPath> <String jsonKey> <JsonValueType valueType> <GreedyString value>
- Document: null
- Can be executed by console:
true
- Required Level Permission:
4
- Required String Permission:
null
Command
- Command Syntax:
/json read <String filePath> <String jsonPath>
- Document: null
- Can be executed by console:
true
- Required Level Permission:
4
- Required String Permission:
null
Command
- Command Syntax:
/json renameKey <String filePath> <String jsonPath> <String oldJsonKey> <String newJsonKey>
- Document: null
- Can be executed by console:
true
- Required Level Permission:
4
- Required String Permission:
null
Command
- Command Syntax:
/json write <String filePath> <String jsonPath> <JsonValueType valueType> <GreedyString value>
- Document: null
- Can be executed by console:
true
- Required Level Permission:
4
- Required String Permission:
null
Argument Types
Argument Type
- Argument Type Name:
[json-value-type]
- Argument Type Class:
[JsonValueType]