3#include <system/default.h>
4#include <system/collections/ienumerator.h>
5#include <system/collections/ienumerable.h>
6#include <system/array.h>
9#include "system/text/json/document/json_document_options.h"
21template <
typename>
class Nullable;
22template <
typename>
class ReadOnlyMemory;
23template <
typename>
class ReadOnlySpan;
41class DefaultObjectConverter;
42class JsonElementConverter;
43class JsonValueConverter;
63 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
64 ASPOSECPP_SHARED_RTTI_INFO_DECL();
170 #ifdef ASPOSE_GET_SHARED_MEMBERS
171 void GetSharedMembers(System::Object::shared_members_type& result)
const override;
180 String get_DebuggerDisplay();
182 String ToString_NonConst();
183 void CheckValidInstance();
192 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
207 ASPOSECPP_SHARED_API
void Reset()
override;
217#ifdef ASPOSE_GET_SHARED_MEMBERS
218 void GetSharedMembers(System::Object::shared_members_type& result)
const override;
225 int32_t _endIdxOrVersion;
236#include "system/text/json/document/json_property.h"
Class that represents an array data structure. Objects of this class should only be allocated using S...
Definition: array.h:296
Interface of enumerator which can be used to iterate through some elements. Objects of this class sho...
Definition: ienumerator.h:63
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
Contains the date and time of day relative to Coordinated Universal Time. Objects of this class shoul...
Definition: date_time_offset.h:16
Represents a decimal number. This type should be allocated on stack and passed to functions by value ...
Definition: decimal.h:107
Represents a Globally Unique IDentifier This type should be allocated on stack and passed to function...
Definition: guid.h:34
Forward declaration.
Definition: nullable.h:75
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:51
Forward to use within Span class.
Definition: span.h:415
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:126
Definition: json_document.h:71
Definition: json_document_options.h:26
Definition: json_element.h:188
JsonElement::ArrayEnumerator GetEnumerator()
bool MoveNext() override
Moves enumerator to the next element. If no element was referenced before, sets reference to the firs...
void Dispose() override
Does nothing.
ArrayEnumerator(JsonElement target, int32_t currentIndex=-1)
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ArrayEnumerator, CODEPORTING_ARGS(JsonElement target, int32_t currentIndex=-1))
JsonElement get_Current() const override
Gets current element.
ASPOSECPP_VALUE_TYPE_IMPLEMENTS_INTERFACES()
void Reset() override
Resets enumerator to position before first element.
Definition: json_property.h:79
Definition: json_element.h:59
static JsonElement ParseValue(Utf8JsonReader &reader, bool allowDuplicateProperties)
bool TryGetSingle(float &value)
bool TryGetInt32(int32_t &value)
ReadOnlyMemory< uint8_t > GetRawValue()
ReadOnlySpan< uint8_t > GetPropertyNameRaw()
System::SharedPtr< Array< uint8_t > > GetBytesFromBase64()
bool TryGetProperty(String propertyName, JsonElement &value)
bool TryGetInt64(int64_t &value)
bool ValueEquals(String text)
bool TryGetUInt16(uint16_t &value)
JsonValueKind get_ValueKind()
bool TryGetUInt64(uint64_t &value)
String GetPropertyRawText()
static JsonElement Parse(ReadOnlySpan< char16_t > json, JsonDocumentOptions options=System::Default< System::Text::Json::JsonDocumentOptions >())
bool ValueIsEscapedHelper(bool isPropertyName)
static JsonElement Parse(String json, JsonDocumentOptions options=System::Default< System::Text::Json::JsonDocumentOptions >())
JsonElement idx_get(int32_t index)
JsonElement GetProperty(ReadOnlySpan< char16_t > propertyName)
bool Equals(const JsonElement &other) const
void WritePropertyNameTo(System::SharedPtr< Utf8JsonWriter > writer)
ReadOnlySpan< uint8_t > get_ValueSpan()
static JsonElement ParseValue(System::SharedPtr< IO::Stream > utf8Json, JsonDocumentOptions options)
JsonElement::ObjectEnumerator EnumerateObject()
JsonElement GetProperty(ReadOnlySpan< uint8_t > utf8PropertyName)
int32_t get_MetadataDbIndex()
bool TryGetDouble(double &value)
bool TryGetGuid(Guid &value)
bool ValueEquals(ReadOnlySpan< char16_t > text)
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(JsonElement, CODEPORTING_ARGS(System::SharedPtr< JsonDocument > parent, int32_t idx))
bool get_ValueIsEscaped()
static bool TryParseValue(Utf8JsonReader &reader, Nullable< JsonElement > &element)
JsonElement(System::SharedPtr< JsonDocument > parent, int32_t idx)
bool ValueEquals(ReadOnlySpan< uint8_t > utf8Text)
bool TryGetInt16(int16_t &value)
bool TryGetProperty(ReadOnlySpan< char16_t > propertyName, JsonElement &value)
bool TryGetSByte(int8_t &value)
void WriteTo(System::SharedPtr< Utf8JsonWriter > writer)
bool TryGetDateTime(DateTime &value)
bool TextEqualsHelper(ReadOnlySpan< uint8_t > utf8Text, bool isPropertyName, bool shouldUnescape)
static JsonElement ParseValue(Utf8JsonReader &reader)
bool TryGetByte(uint8_t &value)
DateTimeOffset GetDateTimeOffset()
bool TryGetDateTimeOffset(DateTimeOffset &value)
JsonElement GetProperty(String propertyName)
static bool DeepEquals(JsonElement element1, JsonElement element2)
bool operator!=(const JsonElement &other) const
int32_t GetPropertyCount()
bool TryGetDecimal(Decimal &value)
bool operator==(const JsonElement &other) const
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
bool TryGetProperty(ReadOnlySpan< uint8_t > utf8PropertyName, JsonElement &value)
bool TryGetBytesFromBase64(System::SharedPtr< Array< uint8_t > > &value)
static JsonElement Parse(ReadOnlySpan< uint8_t > utf8Json, JsonDocumentOptions options=System::Default< System::Text::Json::JsonDocumentOptions >())
JsonElement::ArrayEnumerator EnumerateArray()
bool TextEqualsHelper(ReadOnlySpan< char16_t > text, bool isPropertyName)
bool TryGetUInt32(uint32_t &value)
Definition: json_property.h:30
Definition: json_serializer_helpers.h:91
Definition: json_node.h:54
Definition: object_converter.h:101
Definition: json_element_converter.h:42
Definition: json_value_converter.h:43
Definition: utf8_json_reader.h:78
@ Text
Defines color adjustment information for text.
@ Stream
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
JsonTokenType
Definition: json_token_type.h:12
JsonValueKind
Definition: json_value_kind.h:12
Definition: db_command.h:9