jazzband / jazzband/jsonmodels

How to load data from json file?

Open
#65 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
343
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Hi !

I'm very impressed with jsonmodels, it's awesome!

I only don't know how I can save the data to json an, later, load it into the model, like this:

with open('data.json', 'r') as file:
data = ujson.loads(file.read())
db = DB(load=data)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.