Skip to content

[N8266-20] jsonparse_strcmp_value compare wrong length #173

@schmidtandreas

Description

@schmidtandreas

Hi,
I'm not sure if I'm right here or should create new issue on contiki.
I try it here at first, because I use the esp8266 sdk and not contiki stuff.

Issue:
If you use "jsonparse_strcmp_value(struct jsonparse_state *state, const char *str)" for compare expected value, jsonparse only compare the length of "state" value. But it is not what you normally expect.
Use case: If I'm searching for "brightness" and json data contain "b" (e.g. in "color" object), the "jsonparse_strcmp_value" will return 0, because in this case it compares only 1 character and this character match. But, I guess, it's not that, what you normally expect, isn't it?

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