I'm working with json files and I need to include a json file into an other one.
These are my code and expected reuslt :
file1.json
{
"object" : {
"name" : "society",
"type" : "string",
"database" : "society"
},
"global" : {
// HERE IS THE file2.json CONTENT
}
}
file2.json
{
"email" : {
"type" : "string",
"color" : "secondary",
"logo" : "email.jpg"
},
"quizz" : {
"type" : "string",
"color" : "primary",
"logo" : "quizz.jpg"
}
}
Moreover, I already try this :
"..." : "json file2.json"
But it didn't work. I also use php script to use my json file so maybe I can include file2.json at this time. I also really need to separate my json because I want to use file2.json in many different json.
Plus, I am not creating my json with Php (if it wasn't clear), I just use them later.
Thank,
Lucas.