Differences From Artifact [12ac22c22b]:
- File
src/OFNumber.m
— part of check-in
[eaa612ad50]
at
2014-02-08 09:26:40
on branch trunk
— Add -[JSONRepresentationWithOptions:]
This also adds OF_JSON_REPRESENTATION_PRETTY. (user: js, size: 36310) [annotate] [blame] [check-ins using]
To Artifact [890ea8bb44]:
- File src/OFNumber.m — part of check-in [e07fa89b44] at 2014-02-08 18:04:30 on branch trunk — Add JSON5 output option (user: js, size: 36421) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1420 1421 1422 1423 1424 1425 1426 | double doubleValue; if (_type == OF_NUMBER_BOOL) return (_value.bool_ ? @"true" : @"false"); doubleValue = [self doubleValue]; if (isinf(doubleValue)) { | > | | | | > > | 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 | double doubleValue; if (_type == OF_NUMBER_BOOL) return (_value.bool_ ? @"true" : @"false"); doubleValue = [self doubleValue]; if (isinf(doubleValue)) { if (options & OF_JSON_REPRESENTATION_JSON5) { if (doubleValue > 0) return @"Infinity"; else return @"-Infinity"; } else @throw [OFInvalidArgumentException exception]; } return [self description]; } - (OFDataArray*)messagePackRepresentation { |
︙ | ︙ |