<commit_before>JSON fields
-------------

This is a proposed standard extension to Rest APIs that return JSON.

If and when the request contains a query parameter named "fields" with a blacklist or whitelist of the form

(field1!(subfield1, subfield2),field2(subfield3, subfield4)

Then the returned JSON would contain only the fields "field1" and "field2", which in turn would contain the nested
properties "field2.subfield3", "field2.subfield4", and all fields from "field1" except "subfield1" and "subfield2".

The "grammar" sub-project contains the underlying [ANTLR4](http://www.antlr.org/) grammar, other projects may provide
 implementations of the grammar for different languages and environments.<commit_msg> formatted readme<commit_after>JSON fields
-------------

This is a proposed standard extension to Rest APIs that return JSON.

If and when the request contains a query parameter named "fields" with a blacklist or whitelist of the form

    (field1!(subfield1, subfield2),field2(subfield3, subfield4)

Then the returned JSON would contain only the fields "field1" and "field2", which in turn would contain the nested
properties "field2.subfield3", "field2.subfield4", and all fields from "field1" except "subfield1" and "subfield2".

The "grammar" sub-project contains the underlying [ANTLR4](http://www.antlr.org/) grammar, other projects may provide
 implementations of the grammar for different languages and environments.
{'fraction_non_alphanumeric': 0.08737864077669903, 'fraction_numerical': 0.022191400832177532, 'mean_word_length': 4.938271604938271, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5335645', 'n_tokens_mistral': 388, 'n_tokens_neox': 373, 'n_words': 177}