<commit_before>## Method get_metadata

**Description**

Get the blockchain metadata (e.g., state as known to the current full node).

### Parameters

| Name    | Type           | Description                                                                                          |
|---------|----------------|------------------------------------------------------------------------------------------------------|
| version | unsigned int64 | The transaction version, this parameter is optional, default is server's latest transaction version. |


### Returns

[Metadata](type_metadata.md)

### Example

```
// Request: fetches current block metadata
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"get_metadata","params":[],"id":1}' https://testnet.libra.org/v1

// Response
{
  "id": 1,
  "jsonrpc": "2.0",
  "libra_chain_id": 2,
  "libra_ledger_timestampusec": 1596680521771648,
  "libra_ledger_version": 3253133,
  "result": {
    "timestamp": 1596680521771648,
    "version": 3253133,
    "chain_id": 4,
  }
}
```
<commit_msg>[json-rpc] fix invalid json example in method_get_metadata.md<commit_after>## Method get_metadata

**Description**

Get the blockchain metadata (e.g., state as known to the current full node).

### Parameters

| Name    | Type           | Description                                                                                          |
|---------|----------------|------------------------------------------------------------------------------------------------------|
| version | unsigned int64 | The transaction version, this parameter is optional, default is server's latest transaction version. |


### Returns

[Metadata](type_metadata.md)

### Example

```
// Request: fetches current block metadata
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"get_metadata","params":[],"id":1}' https://testnet.libra.org/v1

// Response
{
  "id": 1,
  "jsonrpc": "2.0",
  "libra_chain_id": 2,
  "libra_ledger_timestampusec": 1596680521771648,
  "libra_ledger_version": 3253133,
  "result": {
    "timestamp": 1596680521771648,
    "version": 3253133,
    "chain_id": 4
  }
}
```

{'fraction_non_alphanumeric': 0.24530032095369098, 'fraction_numerical': 0.052269601100412656, 'mean_word_length': 1.8448500651890483, 'pattern_counts': {'":': 26, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '112039', 'n_tokens_mistral': 674, 'n_tokens_neox': 586, 'n_words': 150}