This is because JSON does not support the use of {$person.first_name}
. It treats it as a string. JSON does no processing for you and is simply a method of holding data.
Your method for reading in the JSON data also appears a little odd. I actually have no idea how that's working for you. The more robust method is as follows:
var fs = require("fs");
var file = fs.readFileSync("./app.json");
var jsonData = JSON.parse(file);
var person = jsonData.person;
console.log(person.first_name + " " + person.last_name);
You already have your data defined no need to expand the contents of your JS file with duplicate data (even if it is in another format).
If you truly need that formatting, generate that data when you create the JSON. If you already have that information being inserted anyway, it's just one more step to add a variable with that formatting.