Discuss this help topic in SecureBlackbox Forum

Read

Declared in     See also     


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


This topic is under development…

Declaration

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

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

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

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

Parameters

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

Return value

    …

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.

Declared in

.NET:
  • Namespace: SBJSON
  • Assembly: SecureBlackbox.Base
VCL:
  • Unit: SBJSON
Java:
  • Package: SecureBlackbox.Base.jar
C++:
  • sbjson.h

See also:     NewNull     NewObject     NewArray     NewValue     Write    

Discuss this help topic in SecureBlackbox Forum