<commit_before>#JsonRpcFormatter#
JsonRpcFormatter is a JSON-RPC 2.0 formatter for PHP.

**This code has not been tested in production environment**

```
--> {"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1}
```

``` php
<?php

use JsonRpcFormatter\Request;
use JsonRpcFormatter\Validator\ArgumentValidator;

$validator = new ArgumentValidator;
$request = new Request($validator);
$request->setId("1");
$request->setMethod("subtract");
$request->setParams(array(42, 23));

// PHP 5.4
echo json_encode($request);

// PHP 5.3
echo json_encode($request->jsonSerialize());
```<commit_msg>Development status warning updated to reflect possible frequent API changes.<commit_after>#JsonRpcFormatter#
JsonRpcFormatter is a JSON-RPC 2.0 formatter for PHP.

**This code is under development, API is unstable**
**This code has not been tested in production environment**

```
--> {"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1}
```

``` php
<?php

use JsonRpcFormatter\Request;
use JsonRpcFormatter\Validator\ArgumentValidator;

$validator = new ArgumentValidator;
$request = new Request($validator);
$request->setId("1");
$request->setMethod("subtract");
$request->setParams(array(42, 23));

// PHP 5.4
echo json_encode($request);

// PHP 5.3
echo json_encode($request->jsonSerialize());
```
{'fraction_non_alphanumeric': 0.17233560090702948, 'fraction_numerical': 0.027210884353741496, 'mean_word_length': 6.005291005291006, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '581848', 'n_tokens_mistral': 446, 'n_tokens_neox': 417, 'n_words': 119}