Skip to content

Add getNumberValue function#385

Merged
Alanscut merged 3 commits into
DaveGamble:developfrom
hqsz:develop
Apr 2, 2020
Merged

Add getNumberValue function#385
Alanscut merged 3 commits into
DaveGamble:developfrom
hqsz:develop

Conversation

@hqsz

@hqsz hqsz commented Aug 15, 2019

Copy link
Copy Markdown
Contributor

Hello :) I use cJSON very well, but i found cJSON don't have getNumberValue.
So I add it. If cJSON object is not number type. I return Nan(not a number).

And i also follow Coding style which is in CONTRIBUTING.md.
At last i Add Unit Test to misc_tests.c, and test is successful.

Check and merge plz. thank u :)

@hqsz hqsz changed the title Develop Add getNumberValue function Aug 15, 2019

@Alanscut Alanscut left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks your contributions, would you mind making some changes?

Comment thread tests/misc_tests.c Outdated
@Alanscut Alanscut merged commit 5437b79 into DaveGamble:develop Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants