tidy up
This commit is contained in:
		
							parent
							
								
									0019c85b85
								
							
						
					
					
						commit
						4d00105e5c
					
				
					 2 changed files with 11 additions and 6 deletions
				
			
		
							
								
								
									
										16
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
# JSON for Modern C++
 | 
			
		||||
 | 
			
		||||
*What if JSON was party of modern C++?*
 | 
			
		||||
*What if JSON was part of modern C++?*
 | 
			
		||||
 | 
			
		||||
[](https://travis-ci.org/nlohmann/json)
 | 
			
		||||
[](https://coveralls.io/r/nlohmann/json)
 | 
			
		||||
| 
						 | 
				
			
			@ -166,6 +166,9 @@ j.empty();    // false
 | 
			
		|||
j.type();     // JSON::value_type::array
 | 
			
		||||
j.clear();    // the array is empty again
 | 
			
		||||
 | 
			
		||||
// comparison
 | 
			
		||||
j == "[\"foo\", 1, true]"_json;  // true
 | 
			
		||||
 | 
			
		||||
// create an object
 | 
			
		||||
JSON o;
 | 
			
		||||
o["foo"] = 23;
 | 
			
		||||
| 
						 | 
				
			
			@ -235,15 +238,18 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 | 
			
		|||
To compile the unit tests, you need to execute
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
  autoreconf -i
 | 
			
		||||
  ./configure
 | 
			
		||||
  make
 | 
			
		||||
$ autoreconf -i
 | 
			
		||||
$ ./configure
 | 
			
		||||
$ make
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
The unit tests can then be executed with
 | 
			
		||||
 | 
			
		||||
```sh
 | 
			
		||||
./json_unit
 | 
			
		||||
$ ./json_unit
 | 
			
		||||
 | 
			
		||||
===============================================================================
 | 
			
		||||
All tests passed (863 assertions in 10 test cases)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
For more information, have a look at the file [.travis.yml](https://github.com/nlohmann/json/blob/master/.travis.yml).
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1832,7 +1832,6 @@ JSON JSON::Parser::parse()
 | 
			
		|||
            // process nonempty array
 | 
			
		||||
            if (_current != ']')
 | 
			
		||||
            {
 | 
			
		||||
                size_t element_count = 0;
 | 
			
		||||
                do
 | 
			
		||||
                {
 | 
			
		||||
                    result.push_back(parse());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue