Discuss this help topic in SecureBlackbox Forum

TElJsonEntity.Read

TElJsonEntity     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Creates the entity from a string or buffer.

Declaration

[C#]
    static TElJsonEntity Read(string Text);
    static TElJsonEntity Read(byte[] Buffer);
    static TElJsonEntity Read(byte[] Buffer, int StartIndex, int Length);

[VB.NET]
    Shared Function Read(ByVal Text As String) As TElJsonEntity
    Shared Function Read(ByVal Buffer As Byte()) As TElJsonEntity
    Shared Function Read(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Length As Integer) As TElJsonEntity

[Pascal]
    class function Read(const Text : string) : TElJsonEntity;
    class function Read(const Buffer : ByteArray) : TElJsonEntity;
    class function Read(const Buffer : ByteArray; StartIndex, Length : Integer) : TElJsonEntity;

[C++]
    static TElJsonEntityHandle Read(const std::string &Text);
    static TElJsonEntityHandle Read(const std::vector<uint8_t> &Buffer);
    static TElJsonEntityHandle Read(const std::vector<uint8_t> &Buffer, int32_t StartIndex, int32_t Length);

[PHP]
    TElJsonEntity Read(string $Text)
    TElJsonEntity Read(array of byte|string|NULL $Buffer)
    TElJsonEntity Read(array of byte|string|NULL $Buffer, integer $StartIndex, integer $Length)

[Java]
    static TElJsonEntity read(TElJsonEntity> this, String Text);
    static TElJsonEntity read(TElJsonEntity> this, byte[] Buffer);
    static TElJsonEntity read(TElJsonEntity> this, byte[] Buffer, int StartIndex, int Length);

Parameters

  • Text -
  • Buffer -
  • StartIndex -
  • Length -

Description

    (1) Parses JSON-text from the string and returns an instance of TElJsonObject if the text contains a JSON object or TElJsonArray if the text contains a JSON array. Otherwise an exception is raised.
    (2) Parses JSON-text from Buffer and returns an instance of TElJsonObject if the text contains a JSON object or TElJsonArray if the text contains a JSON array. Otherwise an exception is raised. Supports UTF-8, UTF-16LE and UTF-16BE encodings.
    (3) Parses JSON-text from Buffer starting from StartIndex and not more then Length bytes. Returns an instance of TElJsonObject if the text contains a JSON object or TElJsonArray if the text contains a JSON array. Otherwise an exception is raised. Supports UTF-8, UTF-16LE and UTF-16BE encodings.

See also:     Write method    

Discuss this help topic in SecureBlackbox Forum