Merge: Basename fix
[nit.git] / lib / json / json.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Copyright 2014 Alexis Laferrière <alexis.laf@xymus.net>
4 # Copyright 2014 Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 # Libraries to manipulate JSON strings.
19 #
20 # Both `dynamic` and `static` modules provide at least a method to parse a
21 # value written in JSON, but only `static` provide a method to translate a
22 # value into JSON.
23 #
24 # The `dynamic` module provides a simple interface to get information
25 # from a JSON document. You must be careful as all services are provided on
26 # each nodes and a wrongful use can `abort`.
27 #
28 # The `static` module provides a common interface for anything that can be
29 # translated into a JSON document. The provided parsing method return a
30 # nullable Nit object that must then be type-checked before it can be used.
31 module json
32
33 import static
34 import dynamic