Browse Source

Amended doc for json_emit()

Sergey Lyubka 11 years ago
parent
commit
684effcf67
1 changed files with 10 additions and 11 deletions
  1. 10 11
      README.md

+ 10 - 11
README.md

@@ -135,17 +135,16 @@ function. Values for `null`, `true`, `false`, and characters
     int json_emit(char *buf, int buf_len, const char *format, ...);
     int json_emit(char *buf, int buf_len, const char *format, ...);
 
 
 A convenience function that generates JSON string using formatted output.
 A convenience function that generates JSON string using formatted output.
-Characters allowed in `format` string:
-
-- `[`, `]`, `{`, `}`, `,`, `:`, `\r`, `\n`, `\t`, ` `: these characters
-would be appended to the output buffer as-is,
-- `i`: argument must be an `long` value, outputs number
-- `f`: argument must be a `double` value, outputs number
-- `s`: argument must be a `\0`-terminated `char *` value, outputs quoted string
-- `S`: argument must be a `\0`-terminated `char *` value, outputs unquoted string
-- `N`: outputs `null`
-- `T`: outputs `true`
-- `F`: outputs `false`
+Characters allowed in `format` string:  
+`[`, `]`, `{`, `}`, `,`, `:`, `\r`, `\n`, `\t`, ` `: these characters
+are appended to the output buffer as-is  
+`i`: argument must be an `long` value, outputs number  
+`f`: argument must be a `double` value, outputs number  
+`s`: argument must be a `\0`-terminated `char *` value, outputs quoted string  
+`S`: argument must be a `\0`-terminated `char *` value, outputs unquoted string  
+`N`: outputs `null`  
+`T`: outputs `true`  
+`F`: outputs `false`  
 
 
 ## Example: accessing configuration parameters
 ## Example: accessing configuration parameters