osamaelsherif / jsondf Goto Github PK
View Code? Open in Web Editor NEWA project for reading JSON data and parse it for DataFrame
Home Page: https://pypi.org/project/JsonDF/
License: MIT License
A project for reading JSON data and parse it for DataFrame
Home Page: https://pypi.org/project/JsonDF/
License: MIT License
there will be a method called edit, that takes the name of the field, and the new value of it.
json = Json()
json.edit(name='existing name', value='new value for it')
create a method called join to join keys and its values from a json together to get a new json object for it and output it as you want.
I will make a method inside the JSON object that makes you have the ability to add values inside the JSON.
it will be like :
json = JSON()
json.insert(name='values name', value='value of it')
a method that gives you the ability to to search inside a json based on the name that's given to it.
json = Json()
json.find(name='name to find')
The searlizer handles only the objet it self but doesn't handle the instances of that object and giving error cause
'__module__' doesn't have __name__ attribute do you mean __ne__
it doesn't a bug as it's doesn't work in the way it intended to work,
cause it supposed to work with the object itself and instance also.
I want to change how the output shows tha there is a value that it is found.
if the structure is
{
'key1' : 'value1',
'key2': {
'key3': 'value 3',
'key4': 'value4',
}
}
and I want to search about the key3
I want the output to be
{'key2.key4': 'value4'}
and if there is more than one result it will be in the same dict, but different in the structure.
There is a problem if I tried to path a list of elements inside the Json constructer, it doesn't parse it.
if we have json_data like thids :
from FjJson import Json
json_data = {
"employees": [
{"name": "Alice", "age": 30},
{"name": "Bob", "age": 25}
]
}
j = Json("DataBase", json_data).objectify()
print(j.find_all("name"))
and we did find_add method to it finding all the name
we get only the last match, and the output will be like this ::
({(1, 'name', 'DataBase.employees'): 'Bob'}, True)
while it should giving :
[ ( { (1, 'name', 'DataBase.employees'): 'Bob' } , True ), ( { (1, 'name', 'DataBase.employees'): 'Alice' } , True ) ]
there will be a method that takes the name and deletes the name and the value from JSON,
and there will be another method to dumb the value of that name inside the JSON.
json = Json()
json.delete(name='existing name in the json')
json.dumb(name='dumbing the name value in the json')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.