-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create to_json function #75
Conversation
fix typo
…rai-sdk-python into nsh-output-to-json merge
@@ -0,0 +1,97 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this file needs the license as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added 👍
railib/utilities.py
Outdated
''' | ||
for i in range(len(keys) - 1): | ||
key = keys[i] | ||
nextValue = {} if type(keys[i+1]) is str else [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python does not use camelCase for identifiers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all variables now are snake_case 👍
examples/show_json.py
Outdated
@@ -0,0 +1,42 @@ | |||
# Copyright 2021 RelationalAI, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong year in copyright header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
can we merge this? |
No, I think we were going to close this as I believe @bradlo had something else in mind. |
Fixes #33
add new function "to_json" inside new file "utilities.py"