diff --git a/src/lib/json/json.c b/src/lib/json/json.c
index eb80e4bbc5ddbf88f2d73ad305321937b370731d..61f6b0839c75d11025758dc4543b5ad96932dca7 100644
--- a/src/lib/json/json.c
+++ b/src/lib/json/json.c
@@ -136,7 +136,7 @@ json_parse_integer(struct json_lexer *lexer, struct json_token *token)
 	const char *pos = lexer->src + lexer->offset;
 	assert(pos < end);
 	int len = 0;
-	uint64_t value = 0;
+	int value = 0;
 	char c = *pos;
 	if (! isdigit(c))
 		return lexer->symbol_count + 1;
diff --git a/src/lib/json/json.h b/src/lib/json/json.h
index ead4468784f87c80373a6a3484e1d4ff846805b6..1f4b580f6e73ff1399e1ec3b1e95a4574f282672 100644
--- a/src/lib/json/json.h
+++ b/src/lib/json/json.h
@@ -30,7 +30,6 @@
  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
-#include <stdint.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -73,7 +72,7 @@ struct json_token {
 			int len;
 		};
 		/** Index value. */
-		uint64_t num;
+		int num;
 	};
 };