+
Point of view
All features
class JSON_CODEC_IMPL [DATA_]
Summary
Direct parents
Inherit list: JSON_CODEC
Insert list: JSON_HANDLER
Class invariant
Overview
Creation features
{ANY}
  • make (a_nested: JSON_CODEC[DATA_])
Features
{ANY}
{JSON_HANDLER}
{}
  • make (a_nested: JSON_CODEC[DATA_])
{}
error_message: ABSTRACT_STRING
writable attribute
{ANY}
error_line: INTEGER_32
writable attribute
{ANY}
error_column: INTEGER_32
writable attribute
{ANY}
nested: JSON_CODEC[DATA_]
writable attribute
{ANY}
build (data: DATA_): JSON_TEXT
effective function
ensure
  • Result /= Void
parse (data: INPUT_STREAM): JSON_TEXT
effective function
require
  • data.is_connected
on_error (a_message: ABSTRACT_STRING, a_line: INTEGER_32, a_column: INTEGER_32)
effective procedure
create_array: JSON_DATA
effective function
add_to_array (array: JSON_DATA, value: JSON_DATA)
effective 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
effective function
add_to_object (object: JSON_DATA, key: JSON_DATA, value: JSON_DATA)
effective 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
effective function
ensure
  • Result /= Void
create_number (number: JSON_NUMBER): JSON_DATA
effective function
ensure
  • Result /= Void
true_value: JSON_DATA
effective function
ensure
  • Result /= Void
false_value: JSON_DATA
effective function
ensure
  • Result /= Void
null_value: JSON_DATA
effective function
ensure
  • Result /= Void
make (a_nested: JSON_CODEC[DATA_])
effective procedure
{}
require
  • a_nested /= Void
ensure
writable attribute
{}
parser: JSON_PARSER
effective function
{}