FromJSON
function FromJSON(sMessage: JSON = null): void
Description
Converts the specified JSON object into the Document Builder object of the corresponding type.
Parameters
- sMessage
JSON
null The JSON object to convert.
Returns
void
Try It
var oDocument = Api.GetDocument();
var oParagraph = Api.CreateParagraph();
oParagraph.AddText("This is a new paragraph");
var json = oParagraph.ToJSON(false, true);
var oParagraphFromJSON = Api.FromJSON(json);
oParagraphFromJSON.SetBold(true);
oDocument.AddElement(0, oParagraphFromJSON);