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. Property

Merge

you can merge propertys to file via file.merge function

const json = require("jsonbyte");


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

file.merge({
    firstName: "Tommy",
    secondName: "Jimmy"
}).save();
PreviousRemoveNextReplace

Last updated 2 years ago