GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
JSON_ENCODER
+
Point of view
All features
ANY
JSON_ARRAY
JSON_FALSE
JSON_NULL
JSON_NUMBER
JSON_OBJECT
JSON_STRING
JSON_TRUE
JSON_HANDLER
All features
class JSON_ENCODER
Summary
top
Direct parents
Inherit list:
JSON_VISITOR
Overview
top
Creation features
{
JSON_HANDLER
}
make
Features
{
ANY
}
pretty
:
BOOLEAN
True if the
JSON
text must be prettily indented, False if no extra space should be emitted
raw
:
BOOLEAN
True if UTF-8 characters can be emitted, False if '\u' sequences are emitted instead
set_pretty
(enable:
BOOLEAN
)
set_raw
(enable:
BOOLEAN
)
{
JSON_HANDLER
}
encode_in
(value:
JSON_VALUE
, a_stream:
OUTPUT_STREAM
)
{
JSON_ARRAY
}
visit_array
(json:
JSON_ARRAY
)
{
JSON_FALSE
}
visit_false
(json:
JSON_FALSE
)
{
JSON_NULL
}
visit_null
(json:
JSON_NULL
)
{
JSON_NUMBER
}
visit_number
(json:
JSON_NUMBER
)
{
JSON_OBJECT
}
visit_object
(json:
JSON_OBJECT
)
{
JSON_STRING
}
visit_string
(json:
JSON_STRING
)
{
JSON_TRUE
}
visit_true
(json:
JSON_TRUE
)
{}
out_stream
:
OUTPUT_STREAM
depth
:
INTEGER_32
make
pretty_indent
pretty_extend
(count:
INTEGER_32
)
pretty
:
BOOLEAN
writable attribute
{
ANY
}
top
True if the
JSON
text must be prettily indented, False if no extra space should be emitted
raw
:
BOOLEAN
writable attribute
{
ANY
}
top
True if UTF-8 characters can be emitted, False if '\u' sequences are emitted instead
set_pretty
(enable:
BOOLEAN
)
effective procedure
{
ANY
}
top
ensure
pretty
= enable
set_raw
(enable:
BOOLEAN
)
effective procedure
{
ANY
}
top
ensure
raw
= enable
encode_in
(value:
JSON_VALUE
, a_stream:
OUTPUT_STREAM
)
effective procedure
{
JSON_HANDLER
}
top
require
value /= Void
a_stream.is_connected
visit_array
(json:
JSON_ARRAY
)
effective procedure
{
JSON_ARRAY
}
top
require
json /= Void
visit_false
(json:
JSON_FALSE
)
effective procedure
{
JSON_FALSE
}
top
require
json /= Void
visit_null
(json:
JSON_NULL
)
effective procedure
{
JSON_NULL
}
top
require
json /= Void
visit_number
(json:
JSON_NUMBER
)
effective procedure
{
JSON_NUMBER
}
top
require
json /= Void
visit_object
(json:
JSON_OBJECT
)
effective procedure
{
JSON_OBJECT
}
top
require
json /= Void
visit_string
(json:
JSON_STRING
)
effective procedure
{
JSON_STRING
}
top
require
json /= Void
visit_true
(json:
JSON_TRUE
)
effective procedure
{
JSON_TRUE
}
top
require
json /= Void
out_stream
:
OUTPUT_STREAM
writable attribute
{}
top
depth
:
INTEGER_32
writable attribute
{}
top
make
effective procedure
{}
top
pretty_indent
effective procedure
{}
top
pretty_extend
(count:
INTEGER_32
)
effective procedure
{}
top
require
pretty