.. _api_javascript: ======================== JavaScript API Reference ======================== DiME uses two custom JavaScript objects to handle interactions between the JavaScript client and the MATLAB and Python clients: Complex and NDArray. The JavaScript client also has a few specialty functions for handling data. ------ ------ Client ------ +-----------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`dime.DimeClient` | The DiME client. | +-----------------------------------------------+----------------------------------------------------------------------------------------+ ------ Others ------ +-----------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`dime.Complex` | A custom object that represents complex numbers. | +-----------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`dime.NDArray` | A custom N-dimensional array object that acts similarly to the numpy | | | object with the same name. | +-----------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`jsonloads` | Loads a new object from JSON. | +-----------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`jsondumps` | Returns the JSON string for an object. | +-----------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`dimebloads` | Loads an object from bytes. | +-----------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`dimebdumps` | Returns the bytes of an object. | +-----------------------------------------------+----------------------------------------------------------------------------------------+