From bfea0319aa07ad2c921ba29ba216e921d65f2ed1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 9 Jan 2024 00:23:16 +0000 Subject: Integer support in persistence Splits bool and arithmatic types, pass arithmatic values as string views from JSON and parse according to the target type. --- lib/jsonParse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/jsonParse.h') diff --git a/lib/jsonParse.h b/lib/jsonParse.h index 4205572..c776643 100644 --- a/lib/jsonParse.h +++ b/lib/jsonParse.h @@ -25,7 +25,7 @@ namespace json { virtual void beginArray() = 0; virtual void pushBoolean(bool) = 0; - virtual void pushNumber(float) = 0; + virtual void pushNumber(std::string_view) = 0; virtual void pushNull() = 0; virtual void pushText(std::string &&) = 0; virtual void pushKey(std::string &&) = 0; -- cgit v1.2.3