6#ifndef ACTIVE_SERIALISE_JSON_JSON_TRANSPORT
7#define ACTIVE_SERIALISE_JSON_JSON_TRANSPORT
9#include "Active/Serialise/Transport.h"
10#include "Active/Utility/String.h"
61 bool isTabbed =
false,
bool isLineFeeds =
false,
bool isNameSpaces =
true,
bool isProlog =
true)
const override;
Definition Transport.h:31
Transport(bool isUnknownNameSkipped=false, TimeFormat timeFormat=iso8601) noexcept
Definition Transport.h:47
Definition JSONTransport.h:17
virtual void send(serialise::Cargo &&cargo, const serialise::Identity &identity, utility::BufferOut &&destination, bool isTabbed=false, bool isLineFeeds=false, bool isNameSpaces=true, bool isProlog=true) const override
Definition JSONTransport.cpp:967
Status
Status of of the JSON transport.
Definition JSONTransport.h:23
@ unknownEscapeChar
The character following an escape is unknown, e.g. not , \r, \u etc.
@ nominal
No errors logged.
@ parsingError
The JSON source couldn't be parsed - likely corrupt or not well-formed.
@ badDelimiter
A value delimiter, i.e. a comma, has been found in the wrong context.
@ unknownName
An unknown name was found in the JSON.
@ incompleteContext
A structure (object, array etc) has been started but not closed.
@ unbalancedScope
A scope has been opened but not closed, e.g. an object started with { but not closed with }.
@ invalidObject
Insertion of an incoming object was rejected, indicating invalid content.
@ badSource
The JSON source failed, e.g. corrupt file.
@ nameMissing
The name of a value/object is missing.
@ badValue
A value was found, but invalid, e.g. text where a number was expected or a number that couldn't be pa...
@ inventoryBoundsExceeded
The source contains more items of a specific type than the inventory maximum permits.
@ badDestination
The JSON destination failed, e.g. full storage, corrupt FS etc prevented writing.
@ closingQuoteMissing
The closing quote is missing in a text value.
@ missingInventory
An object has been provided to send/receive data, but it cannot provide an inventory for its content.
@ badEncoding
The encoding of an escaped character is invalid, e.g. \uXXXX.
@ valueMissing
A value was required but not found.
virtual void receive(serialise::Cargo &&cargo, const serialise::Identity &identity, utility::BufferIn &&source) const override
Definition JSONTransport.cpp:988
Definition BufferOut.h:23
Definition JSONTransport.h:12