Added JSON_PRETTY_STRING_VISITOR
Added converter for ARRAYED_LIST Fixed STRING_32 to JSON_VALUE issue in ejson.e Added missing new line character at the end of some files. Cosmetic
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
note
|
||||
description: "A JSON converter for AUTHOR"
|
||||
author: "Paul Cohen"
|
||||
date: "$Date: 2010-03-08 20:46:59 -0300 (Mon, 08 Mar 2010) $"
|
||||
revision: "$Revision: 82 $"
|
||||
file: "$HeadURL: https://svn.origo.ethz.ch/ejson/branches/POC-converters-factory/test/json_author_converter.e $"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class JSON_AUTHOR_CONVERTER
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
note
|
||||
description: "A JSON converter for BOOK_COLLECTION"
|
||||
author: "Paul Cohen"
|
||||
date: "$Date: 2010-03-08 20:46:59 -0300 (Mon, 08 Mar 2010) $"
|
||||
revision: "$Revision: 82 $"
|
||||
file: "$HeadURL: https://svn.origo.ethz.ch/ejson/branches/POC-converters-factory/test/json_book_collection_converter.e $"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class JSON_BOOK_COLLECTION_CONVERTER
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
note
|
||||
description: "A JSON converter for BOOK"
|
||||
author: "Paul Cohen"
|
||||
date: "$Date: 2010-03-08 20:46:59 -0300 (Mon, 08 Mar 2010) $"
|
||||
revision: "$Revision: 82 $"
|
||||
file: "$HeadURL: https://svn.origo.ethz.ch/ejson/branches/POC-converters-factory/test/json_book_converter.e $"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class JSON_BOOK_CONVERTER
|
||||
|
||||
|
||||
@@ -632,7 +632,7 @@ feature -- Test
|
||||
jrep := "%"foo\\bar%""
|
||||
create parser.make_parser (jrep)
|
||||
if attached {JSON_STRING} parser.parse as jstring then
|
||||
assert ("unescaped string %"foo\\bar%" to %"foo\bar%"", jstring.unescaped_string_8.same_string ("foo\bar"))
|
||||
assert ("unescaped string %"foo\\bar%" to %"foo\bar%"", jstring.unescaped_string.same_string ("foo\bar"))
|
||||
end
|
||||
|
||||
create js.make_json_from_string_32 ({STRING_32}"%/20320/%/22909/")
|
||||
|
||||
@@ -21,4 +21,4 @@ feature -- Status setting
|
||||
name := a_name
|
||||
end
|
||||
|
||||
end -- class AUTHOR
|
||||
end -- class AUTHOR
|
||||
|
||||
@@ -37,4 +37,4 @@ feature -- Status setting
|
||||
isbn := an_isbn
|
||||
end
|
||||
|
||||
end -- class BOOK
|
||||
end -- class BOOK
|
||||
|
||||
@@ -79,4 +79,4 @@ feature {NONE} -- Implementation
|
||||
|
||||
book_index: DS_HASH_TABLE [DS_LIST [BOOK], UC_STRING]
|
||||
|
||||
end -- class BOOK_COLLECTION
|
||||
end -- class BOOK_COLLECTION
|
||||
|
||||
@@ -3,7 +3,6 @@ indexing
|
||||
author: "Paul Cohen"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
file: "$HeadURL: https://svn.origo.ethz.ch/ejson/branches/POC-converters-factory/test/json_author_converter.e $"
|
||||
|
||||
class JSON_AUTHOR_CONVERTER
|
||||
|
||||
@@ -53,4 +52,4 @@ feature {NONE} -- Implementation
|
||||
create Result.make_json ("name")
|
||||
end
|
||||
|
||||
end -- class JSON_AUTHOR_CONVERTER
|
||||
end -- class JSON_AUTHOR_CONVERTER
|
||||
|
||||
@@ -3,7 +3,6 @@ indexing
|
||||
author: "Paul Cohen"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
file: "$HeadURL: https://svn.origo.ethz.ch/ejson/branches/POC-converters-factory/test/json_book_collection_converter.e $"
|
||||
|
||||
class JSON_BOOK_COLLECTION_CONVERTER
|
||||
|
||||
@@ -78,4 +77,4 @@ feature {NONE} -- Implementation
|
||||
create Result.make_json ("books")
|
||||
end
|
||||
|
||||
end -- class JSON_BOOK_COLLECTION_CONVERTER
|
||||
end -- class JSON_BOOK_COLLECTION_CONVERTER
|
||||
|
||||
@@ -3,7 +3,6 @@ indexing
|
||||
author: "Paul Cohen"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
file: "$HeadURL: https://svn.origo.ethz.ch/ejson/branches/POC-converters-factory/test/json_book_converter.e $"
|
||||
|
||||
class JSON_BOOK_CONVERTER
|
||||
|
||||
@@ -72,4 +71,4 @@ feature {NONE} -- Implementation
|
||||
create Result.make_json ("author")
|
||||
end
|
||||
|
||||
end -- class JSON_BOOK_CONVERTER
|
||||
end -- class JSON_BOOK_CONVERTER
|
||||
|
||||
@@ -68,4 +68,4 @@ feature -- Test
|
||||
assert ("ucs_value.string.is_equal (%"bar%")", ucs_value.string.is_equal ("bar"))
|
||||
end
|
||||
|
||||
end -- class TEST_DS
|
||||
end -- class TEST_DS
|
||||
|
||||
@@ -700,4 +700,4 @@ feature -- Test
|
||||
retry
|
||||
end
|
||||
|
||||
end -- class TEST_JSON_CORE
|
||||
end -- class TEST_JSON_CORE
|
||||
|
||||
Reference in New Issue
Block a user