you can get comment value via file.comment.get function
file.comment.get
const json = require("jsonbyte"); const file = new json("./file.json") const comment = file.comment.get("commentKey") console.log(comment); // output: commentValue
Last updated 2 years ago