Skip to content

Commit

Permalink
Fix JsonWriter bool issue#7.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Mar 26, 2024
1 parent 57074e4 commit ee2f162
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FirebaseClient",
"version": "1.0.2",
"version": "1.0.3",
"keywords": "communication, REST, esp32, esp8266, arduino",
"description": "Async Firebase Client library for Arduino.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=FirebaseClient

version=1.0.2
version=1.0.3

author=Mobizt

Expand Down
4 changes: 2 additions & 2 deletions src/FirebaseClient.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Created March 25, 2024
* Created March 26, 2024
*
* The MIT License (MIT)
* Copyright (c) 2024 K. Suwatchai (Mobizt)
Expand Down Expand Up @@ -30,7 +30,7 @@
#undef FIREBASE_CLIENT_VERSION
#endif

#define FIREBASE_CLIENT_VERSION "1.0.2"
#define FIREBASE_CLIENT_VERSION "1.0.3"

#include <Arduino.h>
#include "./core/FirebaseApp.h"
Expand Down
4 changes: 2 additions & 2 deletions src/core/JSON.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Created March 21, 2024
* Created March 26, 2024
*
* The MIT License (MIT)
* Copyright (c) 2024 K. Suwatchai (Mobizt)
Expand Down Expand Up @@ -170,7 +170,7 @@ class JsonWriter
int i = prek(obj, path);
if (ValueConverter::v_sring<T>::value)
obj += "\"";
obj += value;
obj += std::is_same<T, bool>::value ? value : boolean_t(value);
if (ValueConverter::v_sring<T>::value)
obj += "\"";
ek(obj, i);
Expand Down

0 comments on commit ee2f162

Please sign in to comment.