JSON: Difference between revisions

217 bytes removed ,  12 years ago
fixpoint, UTF-8
(→‎Parsing: Escape HTML characters in description.)
(fixpoint, UTF-8)
Line 513:
 
=={{header|PicoLisp}}==
PicoLisp has no JSON library, but it is easy enough to write one. The following supports only fixpoint number (no floating point, as it doesn't exist in PicoLisp), and no unicode escapes (UTF-8 can be used directly):
 
{{incorrect|PicoLisp|This solution seems to be assuming that the read/print syntax of PicoLisp atoms is JSON-compatible. For instance, where does this handle a JSON string containing a \uXXXX escape? Floating-point numbers like -d.ddddddddE+dd? The definition of JSON is not "the native tokens of your programming language wrapped with brackets and punctuation". }}
 
PicoLisp has no JSON library, but it is easy enough to write one:
<lang PicoLisp>(de checkJson (X Item)
(unless (= X Item)
Anonymous user