Function Name |
Description |
@ref makeFormattedJSONRPC11ErrorString() |
Creates a JSON-RPC 1.1 error response string from the parameters passed, formatted with line breaks for easier readability |
@ref makeFormattedJSONRPCErrorString() |
Creates a generic JSON-RPC error response string from the parameters passed, formatted with line breaks for easier readability |
@ref makeFormattedJSONRPCRequestString() |
Creates a JSON-RPC request string from the parameters passed, formatted with line breaks for easier readability |
@ref makeFormattedJSONRPCResponseString() |
Creates a JSON-RPC response string from the parameters passed, formatted with line breaks for easier readability |
@ref makeJSONRPC11ErrorString() |
Creates a JSON-RPC 1.1 error response string from the parameters passed, without any line breaks |
@ref makeJSONRPCErrorString() |
a generic JSON-RPC error response string from the parameters passed, without any line breaks |
@ref makeJSONRPCRequestString() |
Creates a JSON-RPC request string from the parameters passed, without any line breaks |
@ref makeJSONRPCResponseString() |
Creates a JSON-RPC response string from the parameters passed, without any line breaks |
@section codetags Function and Method Tags
@subsection NOOP NOOP
Code with this flag makes no calculations, but rather returns a constant value. This flag is given to function and method variants that return a default value depending on the type of argument(s). When variants with this flag are resolved at parse time, a \c "call-with-type-errors" warning is raised (assuming this warning is enabled), unless \c PO_REQUIRE_TYPES or \c PO_STRICT_ARGS is set. If \c PO_REQUIRE_TYPES or \c PO_STRICT_ARGS is set, then these variants are inaccessible at parse time; resolving to a variant with this flag set at parse time causes an exception to be thrown.
These variants are included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
This tag is equal to @ref RUNTIME_NOOP, except no runtime effect is caused by resolving a function or method tagged with \c NOOP at runtime; this tag only affects parse time resolution.
@subsection RUNTIME_NOOP RUNTIME_NOOP
Code with this flag makes no calculations, but rather returns a constant value. This flag is given to function and method variants that return a default value depending on the type of argument(s). When variants with this flag are resolved at parse time, a \c "call-with-type-errors" warning is raised (assuming this warning is enabled), unless \c PO_REQUIRE_TYPES or \c PO_STRICT_ARGS is set. If \c PO_REQUIRE_TYPES or \c PO_STRICT_ARGS is set, then these variants are inaccessible; resolving to a variant with this flag set at parse time or run time causes an exception to be thrown.
These variants are included for backwards-compatibility with qore prior to version 0.8.0 for functions that would ignore type errors in arguments.
This tag is equal to @ref NOOP, except that \c RUNTIME_NOOP is also enforced at runtime.
@subsection RET_VALUE_ONLY RET_VALUE_ONLY
This flag indicates that the function or method has no side effects; it only returns a value, for example.
This tag is identical to @ref CONSTANT except that functions or methods tagged with \c RET_VALUE_ONLY could throw exceptions.
@subsection CONSTANT CONSTANT
This flag indicates that the function or method has no side effects and does not throw any exceptions.
This tag is identical to @ref RET_VALUE_ONLY except that functions or methods tagged with \c CONSTANT do not throw exceptions.
@subsection DEPRECATED DEPRECATED
Code with this flag is deprecated and may be removed in a future version of this module; if a variant with this flag is resolved at parse time, a \c "deprecated" warning is raised (assuming this warning is enabled).
@section jsonreleasenotes Release Notes
@subsection v0_1_5 Version 1.5
- serialize binary values as base64-encoded strings
- user modules moved to top-level qore module directory from version-specific module directory since they are valid for multiple versions of qore
@subsection v0_1_4 Version 1.4
- date/time values are always serialized with microseconds and in the local time zone for consistency's sake
- fixed a crashing bug in the JSON control-character encoding algorithm
- updated the XmlRpcHandler module for enhanced logging
- source released under the MIT license as well as LGPL 2.1
@subsection v0_1_3 Version 1.3
- always include charset=utf-8 in Content-Type in JsonRpcClient; JSON messages are always serialized with UTF-8 encoding
@subsection v0_1_2 Version 1.2
- fixed serialization/deserialization/escaping regarding control characters
@subsection v0_1_1 Version 1.1
- added support for the new arbitrary-precision numeric type introduced in qore 0.8.6
- serialize control characters with escape codes to be compatible with common Javascript JSON libraries (also corresponding deserialization support)
@subsection v0_1_0 Version 1.0
- Initial release of the json module
- Requires qore 0.8.1+ to build and run
*/