Metadata-Version: 1.1
Name: json2rust
Version: 0.2.0
Summary: Turns a JSON document into a struct for rust-lang
Home-page: https://www.bitbucket.org/johannestaas/json2rust
Author: Johan Nestaas
Author-email: johannestaas@gmail.com
License: GPLv3+
Description: json2rust
        =========
        
        Turns a JSON document into a struct for rust-lang
        
        Installation
        ------------
        
        From the project root directory::
        
            $ python setup.py install
        
        Or::
            
            $ pip install json2rust
        
        Usage
        -----
        
        Simply run it with the name of the root struct and the path to your JSON::
        
            $ json2rust MyStruct data.json
        
        Use --help/-h to view info on the arguments::
        
            $ json2rust --help
        
        Example
        -------
        
        Take your JSON doc::
        
        	$ cat testdata/example.json 
        	{
        		"name": "Me",
        		"age": 33,
        		"children": [
        			{
        				"name": "joe",
        				"age": 0.5,
        				"exists": false
        			}
        		],
        		"job": {
        			"employer": "foo",
        			"salary": 5000000,
        			"coworker": null
        		}
        	}
        
        Run json2rust::
        
        	$ json2rust ExampleStruct testdata/example.json 
        	pub struct ExampleStruct {
        		pub job: Job,
        		pub age: i32,
        		pub name: String,
        		pub children: Vec<Children>,
        	}
        	pub struct Job {
        		pub salary: i32,
        		pub coworker: Option<UNKNOWN_NULL>,
        		pub employer: String,
        	}
        	pub struct Children {
        		pub age: f32,
        		pub name: String,
        		pub exists: bool,
        	}
        
        Release Notes
        -------------
        
        :0.1.0:
            Project works
        :0.0.1:
            Project created
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Environment :: Console
Classifier: Environment :: X11 Applications :: Qt
Classifier: Environment :: MacOS X
Classifier: Environment :: Win32 (MS Windows)
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Other
