| 109 | |
| 110 | |
| 111 | class JSONListContext(JSONBaseContext): |
| 112 | |
| 113 | def doIO(self, function): |
| 114 | if self.first is True: |
| 115 | self.first = False |
| 116 | else: |
| 117 | function(COMMA) |
| 118 | |
| 119 | def write(self): |
| 120 | self.doIO(self.protocol.trans.write) |
| 121 | |
| 122 | def read(self): |
| 123 | self.doIO(self.protocol.readJSONSyntaxChar) |
| 124 | |
| 125 | |
| 126 | class JSONPairContext(JSONBaseContext): |
no outgoing calls
no test coverage detected