This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.



Prepare JSONConsumer for new HTTP message


OK = initialize(consumer)


OK = initialize(consumer) initializes a JSONConsumer for a new HTTP message.

MATLAB® calls initialize to prepare this consumer for receipt of a message. This method tries to determine the charset of the data from the Content-Type in the Header property. If it cannot do so, it assumes UTF-8. This method is an overridden method of StringConsumer.initialize.

initialize returns true if the consumer can process the data. Otherwise, it returns false.

Input Arguments

expand all

Content consumer, specified as a object.



Introduced in R2018a