java中字符串怎么转json?string类型如果要转换成json的话,就需要写成这样的形式,如下:x0dx0aString jsonStr ="{'id':'11','parentId':2023-02-27JavaScript200