Conditions | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | #!/usr/bin/env python |
||
24 | @staticmethod |
||
25 | def mentions_to_JSON(mentions): |
||
26 | """ |
||
27 | Serializes a list of `processors.odin.Mention` to a JSON string. |
||
28 | |||
29 | Parameters |
||
30 | ---------- |
||
31 | mentions : [processors.odin.Mention] |
||
32 | A list of `processors.odin.Mention` to be serialized to JSON. |
||
33 | |||
34 | Returns |
||
35 | ------- |
||
36 | str |
||
37 | A JSON serialization (str) of a list of `processors.odin.Mention`. |
||
38 | """ |
||
39 | return json.dumps(JSONSerializer.mentions_to_JSON_dict(mentions), sort_keys=True, indent=4) |
||
40 | |||
65 |