Import
import
Imports an import JSON object.
Returns
A JSON object containing information about what was successfully imported.
Examples
Import a variable and a label:
{
"jsonrpc": "2.0",
"method": "import",
"params": {
"variables": {
"My Variable": {
"value": "My Value"
}
},
"labels": {
"My Label": {
"metric": true,
"height": 108,
"width": 200,
"objs": [
{
"type": "Rect",
"x": 55,
"y": 38,
"height": 30,
"width": 30,
"fillColor": "black"
},
{
"type": "Text",
"x": 0,
"y": 0,
"text": "Hello {VARIABLE;My Variable}",
"color": "black",
"font": {
"family": "Liberation Sans",
"style": "Regular",
"height": 20
}
}
]
}
}
}
}
Returns:
{"id":null,"jsonrpc":"2.0","result":{"labels":["My Label"],"variables":["My Variable"]}}