<commit_before># django-jsonfield

django-jsonfield is a reusable Django field that allows you to store validated JSON in your model.

It silently takes care of serialization. To use, simply add the field to one of your models.

===

## Install

    pip install jsonfield


## Usage

    from django.db import models
    from jsonfield import JSONField

    class MyModel(models.Model):
      json = JSONField()


## jsonfield.JSONCharField<commit_msg>Flip flopper<commit_after># django-jsonfield

django-jsonfield is a reusable Django field that allows you to store validated JSON in your model.

It silently takes care of serialization. To use, simply add the field to one of your models.

===

## Install

    pip install jsonfield


## Usage

    from django.db import models
    from jsonfield import JSONField

    class MyModel(models.Model):
      json = JSONField()


## Other Fields

**jsonfield.JSONCharField**
{'fraction_non_alphanumeric': 0.06514657980456026, 'fraction_numerical': 0.0, 'mean_word_length': 3.5870646766169156, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4274235', 'n_tokens_mistral': 266, 'n_tokens_neox': 245, 'n_words': 108}