jsonbyte
  • Get Started
  • Property
    • Get
    • Create
    • Change
    • Remove
    • Merge
    • Replace
    • Exists
    • Preview
  • Comments
    • Create
    • Remove
    • Get
    • All
  • Array
    • Create Element
    • Create Element In First
    • Remove Element
    • Get Element
  • Conditional
    • Key
    • Value
  • extras
    • Join
    • Leave
Powered by GitBook
On this page
  1. Comments

Get

PreviousRemoveNextAll

Last updated 2 years ago

CtrlK

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