Skip to content

Version 0.1.2 zip file does not include jsonRemoveWhiteSpace function #4

@mikey60

Description

@mikey60

First thank you for creating the library. I actually encountered a few issues. The issues are as follows.

  • Version 0.1.1 was installed as the latest and only version when I installed the library using the Arduino IDE "Manage Libraries".
  • The zip file jsonlib-0.1.2.zip under the 0.1.2 release does not contain the jsonRemoveWhiteSpace function.
  • The jsonlib.cpp did not compile after installing the jsonlib-master.zip library version. Something about std::string not being defined in the line if (json.indexOf(name) == std::string::npos) return json.substring(0,0); This could be an issue with the compiler used for the Ameba ARM (32-bits) Boards: RTL8722DM /RTL8722CSM. This compiler seems to have some issues compiling other libraries like Pubsubclient and ArduinoJson. Hence the use of your library which is much more lightweight.

My solution was to copy the jsonRemoveWhiteSpace function from the master library to the jsonlib.cpp file of the jsonlib-0.1.2.zip archive. I also added the jsonRemoveWhiteSpace prototype definition to the jsonlib.h of the jsonlib-0.1.2.zip archive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions