Skip to content

Commit 6d90f6a

Browse files
authored
Merge pull request #41 from robotframework-thailand/revert-40-master
Revert "Release 0.4"
2 parents ab23d54 + 04519d7 commit 6d90f6a

File tree

5 files changed

+329
-1264
lines changed

5 files changed

+329
-1264
lines changed

JSONLibrary/JSONLibraryKeywords.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,21 +179,20 @@ def convert_string_to_json(self, json_string):
179179
return json.loads(json_string)
180180

181181
@keyword("Dump JSON To File")
182-
def dump_json_to_file(self, dest_file, json_object, encoding=None):
182+
def dump_json_to_file(self, dest_file, json_object):
183183
"""Dump JSON to file
184184
185185
Arguments:
186186
- dest_file: destination file
187187
- json_object: json as a dictionary object.
188-
- encoding: encoding of the file
189188
190189
Export the JSON object to a file
191190
192191
Examples:
193192
| Dump JSON To File | ${OUTPUTID)${/}output.json | ${json} |
194193
"""
195194
json_str = self.convert_json_to_string(json_object)
196-
with open(dest_file, "w",encoding=encoding) as json_file:
195+
with open(dest_file, "w") as json_file:
197196
json_file.write(json_str)
198197
return str(dest_file)
199198

JSONLibrary/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
VERSION = "0.4"
4+
VERSION = "0.3.1"

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ JSONPath is an expression which can help to access to your JSON document. The JS
1818

1919
This library can help you to add, get, update and delete your JSON object. So it's very useful in case that you have a very large JSON object.
2020

21-
Please note this library is a bridge between the Robot Framework and the parser jsonpath-ng. Hence, issues related to parsing should be raised on https://github.com/h2non/jsonpath-ng
22-
2321
# Usage
2422
Install robotframework-jsonlibrary via ``pip`` command
2523
```bash
@@ -53,14 +51,6 @@ For an example of JSONPath expressions. Go to this link:
5351

5452
https://goessner.net/articles/JsonPath/index.html#e3
5553

56-
Parser: jsonpath-ng:
57-
58-
https://github.com/h2non/jsonpath-ng
59-
60-
This github:
61-
62-
https://github.com/robotframework-thailand/robotframework-jsonlibrary
63-
6454
#Help & Issues
6555
Mention me on Twitter [@nottyo](https://twitter.com/nottyo)
6656

0 commit comments

Comments
 (0)