parseJsonMlNode

Type: Function

How to get parseJsonMlNode?

JavaScript

import parseJsonMlNode from 'fontoxml-dom-utils/src/parseJsonMlNode.js'

Transform the given JsonML fragment into the corresponding DOM structure, using the given document to create nodes.

JsonML is always expected to be a JavaScript structure. If you have a string of JSON, use JSON.parse first.

Arguments

  1. jsonml

    (Required)

    Type: JsonML

    The JsonML fragment to parse

  2. document

    (Required)

    The document to use to create nodes

Returns

Type: FontoNode

The root node of the constructed DOM fragment