+
Point of view
All features
deferred class JSON_CODEC [DATA_]
Summary
A JSON codec, to be subclassed for actual functionality
Direct parents
Inherit list: JSON_ANY_CODEC
Known children
Inherit list: JSON_CODEC_IMPL
Overview
Features
{JSON_HANDLER}
{}
{JSON_HANDLER}
build (data: DATA_): JSON_TEXT
deferred function
ensure
  • Result /= Void
parse (data: INPUT_STREAM): JSON_TEXT
effective function
require
  • data.is_connected
on_error (message: ABSTRACT_STRING, line: INTEGER_32, column: INTEGER_32)
deferred procedure
writable attribute
{}
parser: JSON_PARSER
effective function
{}
create_array: JSON_DATA
deferred function
add_to_array (array: JSON_DATA, value: JSON_DATA)
deferred procedure
require
  • array /= Void
  • value /= Void
finalize_array (array: JSON_DATA)
effective procedure
array is fully read, if a codec needs to do some cleanup this feature can be redefined
require
  • array /= Void
create_object: JSON_DATA
deferred function
add_to_object (object: JSON_DATA, key: JSON_DATA, value: JSON_DATA)
deferred procedure
require
  • object /= Void
  • key /= Void
  • value /= Void
finalize_object (object: JSON_DATA)
effective procedure
object is fully read, if a codec needs to do some cleanup this feature can be redefined
require
  • object /= Void
create_string (string: JSON_STRING): JSON_DATA
deferred function
ensure
  • Result /= Void
create_number (number: JSON_NUMBER): JSON_DATA
deferred function
ensure
  • Result /= Void
true_value: JSON_DATA
deferred function
ensure
  • Result /= Void
false_value: JSON_DATA
deferred function
ensure
  • Result /= Void
null_value: JSON_DATA
deferred function
ensure
  • Result /= Void