doc updates
This commit is contained in:
parent
093baaf515
commit
443a2cbe7f
1 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ json must be encoded in `utf8`. if it's invalid `utf8`, it probably won't parse
|
|||
|
||||
**numbers**
|
||||
|
||||
javascript and thus json represent all numeric values with floats. as this is woefully insufficient for many uses, **jsx**, just like erlang, supports bigints. whenever possible, this library will interpret json numbers that look like integers as integers. other numbers will be converted to erlang's floating point type, which is nearly but not quite iee754. numbers not representable with either type are beyond the concern of this implementation, and will result in parsing errors (with the exception of negative zero, which is converted into plain old zero)
|
||||
javascript and thus json represent all numeric values with floats. as this is woefully insufficient for many uses, **jsx**, just like erlang, supports bigints. whenever possible, this library will interpret json numbers that look like integers as integers. other numbers will be converted to erlang's floating point type, which is nearly but not quite iee754. negative zero is not representable in erlang (zero is unsigned in erlang and `0` is equivalent to `-0`) and will be interpreted as regular zero. numbers not representable are beyond the concern of this implementation, and will result in parsing errors
|
||||
|
||||
when converting from erlang to json, numbers are represented with their shortest representation that will round trip without loss of precision. this means that some floats may be superficially dissimilar (although functionally equivalent). for example, `1.0000000000000001` will be represented by `1.0`
|
||||
|
||||
|
@ -158,11 +158,11 @@ the [json spec][rfc4627] is frustratingly vague on the exact details of json str
|
|||
|
||||
all erlang strings are represented by *valid* `utf8` encoded binaries
|
||||
|
||||
this implementation performs no normalization on strings beyond that detailed here. be careful when comparing strings
|
||||
this implementation performs no normalization on strings beyond that detailed here. be careful when comparing strings as equivalent strings may have different `utf8` encodings
|
||||
|
||||
**true, false and null**
|
||||
|
||||
the json primitives `true`, `false` and `null` are represented by the erlang atoms `true`, `false` and `null`. suprise
|
||||
the json primitives `true`, `false` and `null` are represented by the erlang atoms `true`, `false` and `null`. surprise
|
||||
|
||||
**arrays**
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue