Metadata-Version: 2.1
Name: jom
Version: 0.0.6
Summary: simple json data manager targeting model.JsonField in (djano framework)
Home-page: https://github.com/iamhusseinnaim/jom.git
Author: Hussein Naim
Author-email: phusseinnaim@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# JOM Django JsonField simple manager

JOM Object helps you to handle JsonField in django frame work 
so that you can (delete | edit | add ) values and gets the result from the function
result() 
you can get two types of results (str -> json object | dict -> python object)

> example 

```python

from jom import JOM 
# or you can import it as JsonObjectManager

# asign the object you want to handle 
# json format 
data = '{"name":"Hussein Naim ","site":"https://iamhusseinnaim.github.io","age":22}'

# allowed fields to deal with 
allowed = ['name','site','age']
# create the instance 
instance = JOM(data,allowed=allowed)
# delete a certain item
instance.del_item("age")
# holding the result 
result = instance.result()
# print out the result
print(result)

# output: default = return as json | str 
# "{'name':"Hussein Naim ","site":"https://iamhusseinnaim.github.io"}


```

