formatJsonObject function is a utility for formatting a JSON object or value into a well-formatted, readable string, with control over the indentation level.ts
import { formatJsonObject } from "@arkyn/shared";
objanyindentLevelnumberjavascript
import { formatJsonObject } from "./formatJsonObject";const obj = { name: "John", age: 30, hobbies: ["reading", "games"] };const formatted = formatJsonObject(obj, 0);console.log(formatted);/*Output:{"name": "John","age": 30,"hobbies": ["reading","games"]}*/