convertObjToJsonDataUrl(obj, mimeopt) → {string}
Convert the given object to an "application/json" Data URL string.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
obj |
* | Object to convert. If not a string then gets converted via "JSON.stringify" before. | ||
mime |
string |
<optional> |
'application/json' | Mime type. It's usually "application/json" (default value) or "model/gltf+json" (for usage with gltf data). |
Returns:
Resulting Data URL string.
- Type
- string