1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-08-08 22:36:48 +02:00

fix streaming python module example

This commit is contained in:
Kelly Brazil
2021-09-23 08:56:14 -07:00
parent 31b6203015
commit 92363be2dd
2 changed files with 2 additions and 4 deletions

View File

@ -277,12 +277,11 @@ Streaming parsers accept any iterable object and return a generator iterator obj
To use the generator object in your code, simply loop through it:
```
import json
import jc.parsers.ls_s
result = jc.parsers.ls_s.parse(ls_command_output.splitlines())
for item in result:
item_dict = json.loads(item)
print(item["filename"])
```
### Custom Parsers

View File

@ -200,12 +200,11 @@ Streaming parsers accept any iterable object and return a generator iterator obj
To use the generator object in your code, simply loop through it:
```
import json
import jc.parsers.ls_s
result = jc.parsers.ls_s.parse(ls_command_output.splitlines())
for item in result:
item_dict = json.loads(item)
print(item["filename"])
```
### Custom Parsers