Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for isJSONObject and isJSONString #499

Open
knott11 opened this issue Sep 9, 2024 · 6 comments
Open

Support for isJSONObject and isJSONString #499

knott11 opened this issue Sep 9, 2024 · 6 comments

Comments

@knott11
Copy link
Contributor

knott11 commented Sep 9, 2024

Hello @raon0211, if you need these two functions, I can add them to the predicate library.

@raon0211
Copy link
Collaborator

raon0211 commented Sep 13, 2024

Hello, what is the behavior of the functions you're thinking of? We have some similar functions like isPlainObject, etc.

@knott11
Copy link
Contributor Author

knott11 commented Sep 13, 2024

Hello, what is the behavior of the functions you're thinking of? We have some similar functions like isPlainObject, etc.

I think 'isJSONObject' is used to check whether an object contains elements such as object, array, number, string, boolean, or null, and whether it is to a valid JSON format.'isJSONString' is used to check whether the data can be converted into a JSON object.

@raon0211
Copy link
Collaborator

I think both might be helpful. Could you give it a try?

@SHINMH
Copy link

SHINMH commented Oct 7, 2024

Would it be okay if I try?

@knott11
Copy link
Contributor Author

knott11 commented Oct 8, 2024

Would it be okay if I try?

'isJSONObject' has been merged,'isJSONString' seems not, hello @raon0211 can he try it?

@knott11
Copy link
Contributor Author

knott11 commented Nov 7, 2024

Would it be okay if I try?

I think 'isJSONString' might not be ok,and closed the merge request,maybe you can try it.

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

No branches or pull requests

3 participants