About 118,000 results
Open links in new tab
  1. jsonencode - MathWorks

    To pass a scalar MATLAB object as a scalar JSON array (enclosed in [] characters), convert the object using the cell array construction operator {}. For example, the following code converts the value of the features field into a scalar JSON array.

  2. JSON Representation of MATLAB Data Types - MathWorks

    The response from the server contains a JSON array, where each element of the array corresponds to an output of the deployed MATLAB function represented as a JSON object. You can represent MATLAB data types in JSON using two notation formats: small and large .

  3. JSON Format - MathWorks

    JavaScript Object Notation (JSON) is a data interchange format based on the JavaScript programming language. You can decode and encode JSON-formatted text. You can also import data from a JSON file into MATLAB ® as a structure and write the contents of a structure to a JSON file (since R2023b) .

  4. jsondecode - MathWorks

    JSON supports fewer data types than MATLAB. jsondecode converts JSON data types to the MATLAB data types in this table. jsondecode converts JSON object field names to MATLAB structure field names.

  5. JSONLab: portable, robust JSON/binary-JSON encoder/decoder

    Mar 28, 2024 · JSONLab provides a pair of functions, loadjson-- a JSON parser, and savejson-- a MATLAB-to-JSON encoder, to read/write the text-based JSON; it also provides three equivalent pairs --loadbj/savebj for binary JData, loadubjson/saveubjson for UBJSON and loadmsgpack/savemsgpack for MessagePack.

  6. How can I read a .json file? - MATLAB Answers - MATLAB Central

    Feb 24, 2017 · My personal opinion is that there is still no direct mapping from a generic readable json file to MATLAB's built-in types (struct or dictionary). The readstruct function is expected to support more file formats.

  7. Extract info from .json file by matlab - MATLAB Answers

    Aug 28, 2024 · I need to parse a json file and extract many objects and arrays from that file. Then I am going to plot those extracted information.

  8. Outputting arrays to a JSON file - MATLAB Answers - MathWorks

    I am having trouble creating JSON files that contain stimulus times. I have the stimulus times for my target stimuli and my distractor stimuli in the appropriately named cell arrays, each containing 12 cells (hence y=1:12). What I want to do is take the contents of the each cell and write it into the appropriate json file, so that

  9. Decode JSON into only struct array - MATLAB Answers - MathWorks

    Jul 2, 2019 · I am using jsondecode function in matlab to decode nested json script. I want the final output in struct array only. When some child keys are missing, I get a cell array.

  10. JSON Parser - File Exchange - MATLAB Central

    Sep 1, 2016 · This function parses JSON strings. It converts JSON arrays into cell arrays and JSON objects into structures. This can be used with webervices that return JSON data such as the API provided by Google®.

  11. Some results have been removed
Refresh