Answer the question
In order to leave comments, you need to log in
How to describe the JSON Schema so that only the key of another object can be specified in the property value?
In the project admin panel I use Treema , which generates an HTML interface for me to edit my JSON object according to the scheme given to me.
Let's say the object looks like this:
{
"cities": {
"moscow": {"name":"Москва"},
"sochi": {"name":"Сочи"},
"irkutsk": {"name":"Иркутск"}
},
"projects": {
"a": { "city": "moscow" },
"b": { "city": "sochi" },
"с": { "city": "sochi" },
"d": { "city": "irkutsk" },
"e": { "city": "newyork" }
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question