# doc-cache created by Octave 9.2.0
# name: cache
# type: cell
# rows: 3
# columns: 5
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
json2struct


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2190
   This code is copied from Qianqian Fang's and plotly's loadjson, MANY THANKS to them!
   
   Source: [1] http://iso2mesh.sourceforge.net/cgi-bin/index.cgi?jsonlab
           [2] https://github.com/fangq/jsonlab
           [3] https://github.com/plotly/plotly_matlab

    Copyright (c) 2011-2020 Qianqian Fang <q.fang at neu.edu>
    Copyright (c) 2014,2016 Bastian Bechtold
    Copyright (c) 2012, Kota Yamaguchi
    Copyright (c) 2009, Nedialko Krouchev
    Copyright (c) 2009, Fran鏾is Glineur
    Copyright (c) 2008, Joel Feenstra
    
    All rights reserved.
                              <LICENSE_BSD>
    Redistribution and use in source and binary forms, with or without modification, 
    are permitted provided that the following conditions are met:
    
    * Redistributions of source code must retain the above copyright notice, this 
      list of conditions and the following disclaimer.
    
    * Redistributions in binary form must reproduce the above copyright notice, 
      this list of conditions and the following disclaimer in the documentation 
      and/or other materials provided with the distribution.
    
    * Neither the name of the copyright holder nor the names of its contributors 
      may be used to endorse or promote products derived from this software without 
      specific prior written permission.
    
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.





# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
   This code is copied from Qianqian Fang's and plotly's loadjson, MANY THANK...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
mpapiElastic


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2





# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
weboptionsNew


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3918
 -- OUTPUT = weboptionsNew ()
 -- OUTPUT = weboptionsNew (NAME1, VALUE1, ...)

     Specify parameters for RESTful web services.

     ‘weboptionsNew’ with no inputs returns a default ‘weboptionsNew’
     object to specify parameters for a request to a web service.  A
     ‘weboptionsNew’ object can be an optional input argument to the
     ‘webread’ and ‘webwrite’ functions.

     Multiple name and value pair arguments may be specified in any
     order as NAME1, VALUE1, NAME2, VALUE2, etc.

     The option names must match *exactly* one of those specified in the
     table below.

     The following options are available:

        • ‘CharacterEncoding’ -- Specify the character encoding of the
          data:

          ‘auto’ (default), ‘UTF-8’, ‘US-ASCII’ ‘auto’ chooses an
          encoding based on the content-type of the data.

        • ‘UserAgent’ -- Specify the User Agent for the connection.

          Default value is ‘GNU Octave/version’, where ‘version’ is the
          current version of Octave as returned by ‘version’.

        • ‘Timeout’ -- Specify the timeout value for the connection in
          seconds.

          Default is 10 seconds.  ‘Inf’ is not currently supported.

        • ‘Username’ -- User identifier for a basic HTTP connection.

          Default is NULL.  It must be a string.

        • ‘Password’ -- User authentication password for HTTP
          connection.

          Default is NULL.  It must be a string or character vector.
          Programming Note: If you display a ‘weboption’ object with the
          Password property set, the value is displayed as a string
          containing '*'.  However, the object stores the value of the
          Password property as plain text.

        • ‘KeyName’ -- Specify the name of an additional key to be added
          to the HTTP request header.  It should be coupled with
          ‘KeyValue’.  It must be a string or character vector.

        • ‘KeyValue’ -- Specify the value of the key ‘KeyName’.

          ‘KeyName’ must be present in order to assign to this field.

        • ‘HeaderFields’ -- Specify the header fields for the
          connection.

          Names and values of header fields, specified as an m-by-2
          array of strings or cell array of character vectors to add to
          the HTTP request header.  HeaderFields{i,1} is the name of a
          field and HeaderFields{i,2} is its value.

               weboptionsNew ("HeaderFields", {"Content-Length" "78";"Content-Type" "application/json"})
               Creates a weboptionsNew object that contains two header fields: Content-Length
               with value 78 and Content-Type with value application/json.

        • ‘ContentType’ -- Specify the content type of the data.

          The following values are available: ‘auto’, ‘text’, ‘json’

          Default is ‘auto’.  It automatically determines the content
          type.  All other formats like ‘audio’, ‘binary’, etc.
          available in MATLAB are not currently supported.

        • ‘ContentReader’ -- Not yet implemented.  Only for MATLAB
          compatibility.

        • ‘MediaType’ -- Not yet implemented.  Only for MATLAB
          compatibility.

        • ‘RequestMethod’ -- Specifies the type of request to be made.

          The following methods are available: ‘get’, ‘put’, ‘post’,
          ‘delete’, ‘patch’

          ‘webread’ uses the HTTP GET method.  ‘webwrite’ uses the HTTP
          POST method as default.

        • ‘ArrayFormat’ - Not yet implemented.  Only for MATLAB
          compatibility.

        • ‘CertificateFilename’ -- Not yet implemented.  Only for MATLAB
          compatibility.

     See also: webread, webwrite.


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 44
Specify parameters for RESTful web services.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
webreadNew


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 766
 -- RESPONSE = webread (URL)
 -- RESPONSE = webread (URL, NAME1, VALUE1, ...)
 -- RESPONSE = webread (..., OPTIONS)

     Read content from RESTful web service.

     Read content from the web service specified by URL and return the
     content in RESPONSE.

     All key-value pairs given (NAME1, VALUE1, ...) are appended as
     query parameters to URL.  To place a query in the body of the
     message, use ‘webwrite’.  The web service defines the acceptable
     query parameters.

     OPTIONS is a ‘weboptions’ object that may be used to add other HTTP
     request options.  This argument can be used with either calling
     form.  See ‘help weboptions’ for a complete list of supported HTTP
     options.

     See also: weboptions, webwrite.


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 38
Read content from RESTful web service.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
webwriteNew


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 712
 -- RESPONSE = webwrite (URL, NAME1, VALUE1, ...)
 -- RESPONSE = webwrite (URL, DATA)
 -- RESPONSE = webwrite (..., OPTIONS)

     Write data to RESTful web services.

     Write content to the web service specified by URL and return the
     response in RESPONSE.

     All key-value pairs given (NAME1, VALUE1, ...) are added as pairs
     of query parameters to the body of request method (‘get’, ‘post’,
     ‘put’, etc.).

     OPTIONS is a ‘weboptions’ object that may be used to add other HTTP
     request options.  This argument can be used with either calling
     form.  See ‘help weboptions’ for a complete list of supported HTTP
     options.

     See also: weboptions, webread.


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 35
Write data to RESTful web services.





