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

This is a built in tag
Tag arguments
[]
Code
class formatJson {
  encode(input) {
    return JSON.stringify(JSON.parse(input), null, 3);
  }
}