lib & contrib: update imports
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 14 Sep 2016 18:43:31 +0000 (14:43 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 19 Sep 2016 19:49:38 +0000 (15:49 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

40 files changed:
benchmarks/json/scripts/nitcc_parser.nit
contrib/benitlux/src/client/base.nit
contrib/benitlux/src/server/benitlux_controller.nit
contrib/neo_doxygen/src/model/descriptions.nit
contrib/neo_doxygen/src/model/location.nit
contrib/refund/src/refund_json.nit
contrib/shibuqam/examples/shibuqamoauth.nit
contrib/tinks/src/client/linux_client.nit
contrib/tnitter/src/action.nit
contrib/tnitter/src/push.nit
contrib/tnitter/src/tnitter_app.nit
examples/rosettacode/json_output.nit
lib/android/bundle/bundle.nit
lib/android/intent/intent_api10.nit
lib/android/shared_preferences/shared_preferences_api10.nit
lib/app/http_request.nit
lib/github/api.nit
lib/github/events.nit
lib/github/github_curl.nit
lib/ios/data_store.nit
lib/json/store.nit
lib/linux/data_store.nit
lib/mongodb/mongodb.nit
lib/mpi/mpi.nit
lib/neo4j/curl_json.nit
lib/neo4j/error.nit
lib/nitcorn/restful.nit
lib/popcorn/pop_handlers.nit
lib/popcorn/pop_repos.nit
lib/popcorn/pop_validation.nit
lib/serialization/README.md
src/doc/doc_phases/doc_indexing.nit
src/doc/html_templates/html_components.nit
src/examples/nitwebcrawl.nit
src/model/model_json.nit
tests/test_json_deserialization.nit
tests/test_json_deserialization_heuristic.nit
tests/test_json_deserialization_plain.nit
tests/test_json_unicode.nit
tests/test_serialization.nit

index f09b746..627ae39 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import json
+import json::static
 
 var text = args.first.to_path.read_all
 var json = text.parse_json
index 7cfde72..28b4c88 100644 (file)
@@ -19,7 +19,7 @@ import app::ui
 import app::data_store
 import app::http_request
 import android::aware
-import json::serialization
+import json
 
 import benitlux_model
 import translations
index 5649345..a2ab392 100644 (file)
@@ -19,7 +19,7 @@ module benitlux_controller
 
 import nitcorn
 import nitcorn::restful
-private import json::serialization
+private import json
 
 import benitlux_model
 import benitlux_db
index 5a27553..58ef0e6 100644 (file)
@@ -16,6 +16,7 @@
 module model::descriptions
 
 import json::static
+import json
 
 # Documentation associated to an entity.
 #
index 46551a8..d5f3727 100644 (file)
@@ -16,6 +16,7 @@
 module location
 
 import json::static
+import json
 
 # A location inside a source file.
 class Location
index 7c5e4d0..f670f9d 100644 (file)
@@ -19,6 +19,7 @@ module refund_json
 
 import refund_base
 import json::static
+import json
 
 redef class RefundProcessor
 
index 4645eca..bda76a3 100644 (file)
@@ -172,7 +172,7 @@ module shibuqamoauth
 
 import popcorn
 import shibuqam
-import json::serialization
+import json
 
 redef class HttpRequest
        # percent decoded get or post parameter.
index bd60702..5e7cca4 100644 (file)
@@ -17,7 +17,7 @@ module linux_client
 
 import mnit::linux
 import linux::audio
-import json::serialization
+import json
 
 import client
 
index 60ee384..f567294 100644 (file)
@@ -18,7 +18,7 @@
 module action
 
 import nitcorn
-import json::serialization
+import json
 
 import model
 import database
index bc47789..9900cfa 100644 (file)
@@ -16,7 +16,7 @@
 module push
 
 import nitcorn
-import json::serialization
+import json
 
 import model
 import database
index cf1d162..8218004 100644 (file)
@@ -31,7 +31,7 @@ import app::ui
 import app::http_request
 import app::data_store
 import android::aware
-import json::serialization
+import json
 
 import model
 
index 59fb72b..800a310 100644 (file)
@@ -7,6 +7,7 @@
 # SEE: <http://rosettacode.org/wiki/JSON>
 module json_output
 
+import json::static
 import json
 
 var str = """{
index 82acbec..e02702a 100644 (file)
@@ -19,7 +19,7 @@
 module bundle
 
 import serialization
-import json::serialization
+import json
 
 import platform
 import activities
index 746c0c4..f9e6c3b 100644 (file)
@@ -21,7 +21,7 @@ module intent_api10
 import dalvik
 import android::bundle
 import serialization
-private import json::serialization
+private import json
 
 in "Java" `{
        import android.content.Intent;
index b268087..f17661f 100644 (file)
@@ -19,7 +19,7 @@ module shared_preferences_api10
 
 import dalvik
 import serialization
-private import json::serialization
+private import json
 
 in "Java" `{
        import android.content.SharedPreferences;
index 3fc48c6..0260cab 100644 (file)
@@ -17,7 +17,7 @@ module http_request
 
 import app_base
 import pthreads
-import json::serialization
+import json
 
 import linux::http_request is conditional(linux)
 import android::http_request is conditional(android)
index e42faf5..8bd1ee3 100644 (file)
@@ -20,7 +20,7 @@
 module api
 
 import github_curl
-intrude import json::serialization
+intrude import json::serialization_read
 
 # Client to Github API
 #
index b8c004a..3417de2 100644 (file)
@@ -18,7 +18,7 @@
 module events
 
 import api
-intrude import json::serialization
+intrude import json
 
 # Github event stub.
 class GithubEvent
index 05761b1..f2d5737 100644 (file)
@@ -18,6 +18,7 @@ module github_curl
 
 import curl
 import json::static
+import json
 
 # Specific Curl that know hot to talk to the github API
 class GithubCurl
index 6d1579d..a06586c 100644 (file)
@@ -17,7 +17,7 @@ module data_store
 
 import app::data_store
 import cocoa::foundation
-private import json::serialization
+private import json
 
 redef class App
        redef var data_store = new UserDefaultView
index 42a04df..b8ce0f9 100644 (file)
@@ -90,6 +90,7 @@
 module store
 
 import static
+import json
 
 # A JsonStore can save and load json data from file system.
 class JsonStore
index 4d7ff2b..5924822 100644 (file)
@@ -20,7 +20,7 @@ module data_store
 import app::data_store
 private import xdg_basedir
 private import sqlite3
-private import json::serialization
+private import json
 
 redef class App
        redef var data_store = new LinuxStore
index 80c4d4c..17b137f 100644 (file)
@@ -42,6 +42,7 @@
 # ~~~
 module mongodb
 
+import json::static
 import json
 private import native_mongodb
 
index bc47997..5ea6596 100644 (file)
@@ -33,7 +33,7 @@ end
 import c
 intrude import core::text::flat
 import serialization
-private import json::serialization
+private import json
 
 in "C Header" `{
        #include <mpi.h>
index 03a7ca4..f2a541f 100644 (file)
@@ -16,6 +16,7 @@
 module curl_json
 
 import json::static
+import json
 intrude import curl
 
 # An abstract request that defines most of the standard options for Neo4j REST API
index 9dc24f7..58068ad 100644 (file)
@@ -12,6 +12,7 @@
 module neo4j::error
 
 import json::static
+import json
 
 # An error thrown by the `neo4j` API.
 #
index 158643a..4342a11 100644 (file)
@@ -16,7 +16,7 @@
 module restful is new_annotation(restful)
 
 import nitcorn
-import json::serialization
+import json
 
 # Action with `restful` methods
 class RestfulAction
index e4da4a5..8d66cc9 100644 (file)
@@ -18,6 +18,7 @@
 module pop_handlers
 
 import pop_routes
+import json::static
 import json
 
 # Class handler for a route.
index 0a6bd37..7b02c35 100644 (file)
@@ -120,7 +120,7 @@ module pop_repos
 
 import popcorn::pop_config
 import serialization
-import json::serialization
+import json
 import mongodb::queries
 
 redef class AppConfig
index 7dd529d..b1464b8 100644 (file)
@@ -70,7 +70,7 @@
 # ~~~
 module pop_validation
 
-import json
+import json::static
 
 # The base class of all validators
 abstract class DocumentValidator
index 47eef73..3f6ac6c 100644 (file)
@@ -234,7 +234,7 @@ The main implementations of these services are `JsonSerializer` and `JsonDeseria
 from the `json_serialization` module.
 
 ~~~
-import json_serialization
+import json
 import user_credentials
 
 # Data to be serialized and deserialized
index 5a2a336..066f8ab 100644 (file)
@@ -18,6 +18,7 @@ module doc_indexing
 import doc_base
 import html_templates::html_model # FIXME maybe this phase should depend on `html_render`
 private import json::static
+private import json
 
 # Generate the index for then Nitdoc QuickSearch field.
 #
index 630d28e..a0f1399 100644 (file)
@@ -18,7 +18,7 @@ module html_components
 
 import doc_base
 import html::bootstrap
-import json::static
+import json
 
 # A label with a text content.
 class DocHTMLLabel
index 1187476..e981ac6 100644 (file)
@@ -15,7 +15,7 @@
 # Crawler on the nitweb web API
 module nitwebcrawl
 
-import json
+import json::static
 
 # Download a HTTP resource
 fun curl(url: String): String do
index eaa3feb..1d8483c 100644 (file)
@@ -25,6 +25,7 @@
 module model_json
 
 import model::model_collect
+import json::static
 import json
 import loader
 
index 6b936ac..6a4dfdb 100644 (file)
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 import test_deserialization
-import json::serialization
+import json
 #alt1# import test_deserialization_serial
 #alt3# import test_deserialization_serial
 
index c79bba3..d0df911 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import json::serialization
+import json
 import json::static
 
 class MyData
index 7358c85..da184d5 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import json::serialization
+import json
 import json::static
 
 class MyClass
index 8800f3e..84850ab 100644 (file)
@@ -12,6 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+import json::static
 import json
 
 var str = """{
index b098a82..3530f12 100644 (file)
@@ -17,7 +17,7 @@
 #alt2#module test_serialization_alt2 is serialize
 
 import serialization
-import json::serialization
+import json
 
 # Simple class
 class A