formatJson
This tag parses the input as JSON then stringifies it and formats it.
Created by: hackvertor
Installed 1 times
Category: Utils
Created on: Tuesday, October 15, 2024 at 8:40:18 PM
Updated on: Tuesday, October 15, 2024 at 8:40:18 PM
Tag arguments
[]
Code
class formatJson {
encode(input) {
return JSON.stringify(JSON.parse(input), null, 3);
}
}