From e628e40f0190968ce730a1e222fbafeb0fce1179 Mon Sep 17 00:00:00 2001 From: rafagafe Date: Thu, 6 Apr 2017 14:40:31 +0200 Subject: [PATCH] Update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2552e77..3a2fa33 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Two types are defined in tiny-json API. One is jsonType_t. It is an enumeration ```C typedef enum { JSON_OBJ, JSON_ARRAY, JSON_TEXT, JSON_BOOLEAN, - JSON_INTEGER, JSON_REAL, JSON_SCIENTIFIC, JSON_NULL + JSON_INTEGER, JSON_REAL, JSON_NULL } jsonType_t; ``` To parse a JSON string we use the function json_create(). We pass it an array of json_t for it can allocate JSON fields. @@ -57,7 +57,7 @@ if ( agefield == NULL ) return EXIT_FAILURE; if ( json_getType( agefield ) != JSON_INTEGER ) return EXIT_FAILURE; int64_t agevalue = json_getInteger( agefield ); -printf( "%s%ll%s", "Age: '", agevalue, "'.\n" ); +printf( "%s%lld%s", "Age: '", agevalue, "'.\n" ); char const* agetxt = json_getValue( agefield ); printf( "%s%s%s", "Age: '", agetxt, "'.\n" );