Get

you can get comment value via file.comment.get function

const json = require("jsonbyte");


const file = new json("./file.json")


const comment = file.comment.get("commentKey")
console.log(comment); // output: commentValue

Last updated