Skip to content

Commit

Permalink
doc the string
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrink10 committed Jun 5, 2020
1 parent 16b3b7a commit 40d524e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/basilisp/json.lpy
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@
serialized as JSON arrays. Keywords and symbols are serialized as strings with
their namespace (if they have one). Python scalar types are serialized as their
corresponding JSON types (string, integer, float, boolean, and `nil`). Instants
(Python `datetime`s) are serialized as ISO 8601 date strings. Decimals are
serialized as stringified floats. Fractions are serialized as ratios (numerator
and denominator). UUIDs are serialized as their canonical hex string format.
(Python `datetime`s) and the related Python `date` and `time` types are
serialized as ISO 8601 date strings. Decimals are serialized as stringified
floats. Fractions are serialized as stringified ratios (numerator and
denominator). UUIDs are serialized as their canonical hex string format.
Support for other data structures can be added by extending the `JSONEncodeable`
Protocol. That protocol includes one method which must return a Python data type
Expand Down Expand Up @@ -142,9 +143,10 @@
serialized as JSON arrays. Keywords and symbols are serialized as strings with
their namespace (if they have one). Python scalar types are serialized as their
corresponding JSON types (string, integer, float, boolean, and `nil`). Instants
(Python `datetime`s) are serialized as ISO 8601 date strings. Decimals are
serialized as stringified floats. Fractions are serialized as ratios (numerator
and denominator). UUIDs are serialized as their canonical hex string format.
(Python `datetime`s) and the related Python `date` and `time` types are
serialized as ISO 8601 date strings. Decimals are serialized as stringified
floats. Fractions are serialized as stringified ratios (numerator and
denominator). UUIDs are serialized as their canonical hex string format.
Support for other data structures can be added by extending the `JSONEncodeable`
Protocol. That protocol includes one method which must return a Python data type
Expand Down

0 comments on commit 40d524e

Please sign in to comment.