Encodes the Python boolean into a JSON Boolean literal.
(self, bval, state)
| 3579 | return (kw == 'true') |
| 3580 | |
| 3581 | def encode_boolean(self, bval, state): |
| 3582 | """Encodes the Python boolean into a JSON Boolean literal.""" |
| 3583 | state.append( 'true' if bool(bval) else 'false' ) |
| 3584 | |
| 3585 | def decode_number(self, state): |
| 3586 | """Intermediate-level decoder for JSON numeric literals. |