| Conditions | 1 |
| Total Lines | 16 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 23 | @staticmethod |
||
| 24 | def mentions_to_JSON(mentions): |
||
| 25 | """ |
||
| 26 | Serializes a list of `processors.odin.Mention` to a JSON string. |
||
| 27 | |||
| 28 | Parameters |
||
| 29 | ---------- |
||
| 30 | mentions : [processors.odin.Mention] |
||
| 31 | A list of `processors.odin.Mention` to be serialized to JSON. |
||
| 32 | |||
| 33 | Returns |
||
| 34 | ------- |
||
| 35 | str |
||
| 36 | A JSON serialization (str) of a list of `processors.odin.Mention`. |
||
| 37 | """ |
||
| 38 | return json.dumps(JSONSerializer.mentions_to_JSON_dict(mentions), sort_keys=True, indent=4) |
||
| 39 | |||
| 64 |