<commit_before># JsonTextViewer #
a simply WPF app to format json text that return from a web request.


Dependencies:

+ Newtonsoft.Json v8.0.2

## About the message body ##
You can add headers for your requests by adding them to "headers";

For requests using POST or PUT, you can also send data by write it as "body";

1. Lines start with '#' as the first non-white space character are comments, these lines will be ignored.
2. If you don't nedd headers, keep it empty, or just remove it from json.
3. The type can be one of { text, form, json(application/json) }.
4. The 'form' support file uploading, by enable the 'file' block.

Example for text
<pre>
    {
        headers: {
            # additional headers
            "uid": 1
        },
        # type can be one of { text, form, json }
        type: "text",
        # for text content, using string replace object 
        body: " this is a text content"
    }
</pre>

Example for form:
<pre>
    {
        headers: null
        # type can be one of { text, form, json }
        type: "form",
        body: {
            name: "John",
            age: 23
        }
    }
</pre>


Example for form(file uploading):
<pre>
    {
        headers: null
        # type can be one of { text, form, json }
        type: "form",
        body: {
            name: "John",
            age: 23
        },
        file: {
            name: "picture",
            path: "c:\\dir_to_file\\file_name.jpg",
            filename: "example.jpg"
        }
    }
</pre>

Example for json:
<pre>
    {
        # without headers property
        # type can be one of { text, form, json }
        type: "json",
        body: {
            name: "John",
            age: 23
        }
    }
</pre><commit_msg>update README;<commit_after># JsonTextViewer #
a simply WPF app to format json text that return from a web request.


Dependencies:

+ Newtonsoft.Json v8.0.2

## About the message body ##
You can add headers for your requests by adding them to "headers";

For requests using POST or PUT, you can also send data by write it as "body";

1. Lines start with '#' as the first non-white space character are comments, these lines will be ignored.
2. If you don't nedd headers, keep it empty, or just remove it from json.
3. The type can be one of { text, form, json(application/json) }.
4. The 'form' support file uploading, by enable the 'file' block.

Example for text
<pre>
    {
        headers: {
            # additional headers
            "uid": 1
        },
        # type can be one of { text, form, json }
        type: "text",
        # for text content, using string replace object 
        body: " this is a text content"
    }
</pre>

Example for form:
<pre>
    {
        headers: null
        # type can be one of { text, form, json }
        type: "form",
        body: {
            name: "John",
            age: 23
        }
    }
</pre>


Example for form(file uploading):
<pre>
    {
        headers: null
        # type can be one of { text, form, json }
        type: "form",
        body: {
            name: "John",
            age: 23
        },
        file: {
            name: "picture",
            path: "c:\\dir_to_file\\file_name.jpg",
            filename: "example.jpg",
            type: "image/jpg"
        }
    }
</pre>

Example for json:
<pre>
    {
        # without headers property
        # type can be one of { text, form, json }
        type: "json",
        body: {
            name: "John",
            age: 23
        }
    }
</pre>
{'fraction_non_alphanumeric': 0.10448608745031232, 'fraction_numerical': 0.007950028392958546, 'mean_word_length': 1.7331264546159815, 'pattern_counts': {'":': 2, '<': 19, '<?xml version=': 0, '>': 19, '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': '1286829', 'n_tokens_mistral': 1070, 'n_tokens_neox': 1034, 'n_words': 426}