Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1032573 // jsonReindent

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4207L/24K).

sS jsonReindent(int levelsToIndent default 5, S json) {
  ret jsonEncode_breakAtLevels(levelsToIndent, jsonParse(json));
}

Author comment

Began life as a copy of #1029978

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032573
Snippet name: jsonReindent
Eternal ID of this version: #1032573/4
Text MD5: ad714b1f0f7c13adc4ad985e1ec6cec8
Transpilation MD5: 0c8205a7983a3d299c2fdc46bb44f6b5
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-23 00:30:00
Source code size: 124 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 151 / 211
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)