45 lines
845 B
Plaintext
45 lines
845 B
Plaintext
note
|
|
description: "A JSON converter"
|
|
author: "Paul Cohen"
|
|
date: "$Date$"
|
|
revision: "$Revision$"
|
|
file: "$HeadURL: $"
|
|
|
|
deferred class
|
|
JSON_CONVERTER
|
|
|
|
obsolete
|
|
"This JSON converter design has issues [Sept/2014]."
|
|
|
|
inherit
|
|
|
|
SHARED_EJSON
|
|
|
|
feature -- Access
|
|
|
|
object: ANY
|
|
-- Eiffel object
|
|
deferred
|
|
end
|
|
|
|
feature -- Conversion
|
|
|
|
from_json (j: attached like to_json): detachable like object
|
|
-- Convert from JSON value.
|
|
-- Returns Void if unable to convert
|
|
deferred
|
|
end
|
|
|
|
to_json (o: like object): detachable JSON_VALUE
|
|
-- Convert to JSON value
|
|
deferred
|
|
end
|
|
|
|
invariant
|
|
has_eiffel_object: object /= Void -- An empty object must be created at creation time!
|
|
|
|
note
|
|
copyright: "2010-2014, Javier Velilla and others https://github.com/eiffelhub/json."
|
|
license: "https://github.com/eiffelhub/json/blob/master/License.txt"
|
|
end
|