<commit_before># Copyright (C) 2011, Parrot Foundation.

# This is the start to rewrite JSON. It starts with rewriting data_json only.
# data_json depends on the PGE. The rewrite use parrot-nqp.


=head1 NAME

JSON, a lightweight data-interchange format.

=head1 SYNOPSIS

The C<from_json> method return a PMC that containing the data structure
for a given valid JSON (JavaScript Object Notation) string.
For example:

    .sub 'main' :main
         .local pmc result<commit_msg>Update with DESCRIPTION and fixed a typo.<commit_after># Copyright (C) 2011, Parrot Foundation.

# This is the start to rewrite JSON. It starts with rewriting data_json only.
# data_json depends on the PGE. The rewrite use parrot-nqp.

=head1 NAME

JSON, a lightweight data-interchange format.

=head1 DESCRIPTION

The C<from_json> method return a PMC that contains the data structure for
a given valid JSON (JavaScript Object Notation) string. For example:

    .sub 'main' :main
         .local pmc result
{'fraction_non_alphanumeric': 0.06389452332657201, 'fraction_numerical': 0.012170385395537525, 'mean_word_length': 3.91044776119403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3850058', 'n_tokens_mistral': 311, 'n_tokens_neox': 283, 'n_words': 135}