fastjson2 icon indicating copy to clipboard operation
fastjson2 copied to clipboard

2413 fix

Open arjun12102019 opened this issue 1 year ago • 2 comments

What this PR does / why we need it?

JSONObject.from(Object obj) Currently we have only method which expects type Object and getting class cast exception when we pass string

Summary of your change

Overloaded method for String argument and invoking JSON.parseObject(text) to return JSONObject

Please indicate you've done the following:

  • [ ] Made sure tests are passing and test coverage is added if needed.
  • [ ] Made sure commit message follow the rule of Conventional Commits specification.
  • [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

arjun12102019 avatar Apr 17 '24 18:04 arjun12102019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 17 '24 18:04 CLAassistant