open-source-parsers / jsoncpp

A C++ library for interacting with JSON.
Other
8.06k stars 2.63k forks source link

Is it necessary to add a function that filters out json format strings? #1536

Open ZhengXuan-Xie opened 3 months ago

ZhengXuan-Xie commented 3 months ago

In my project,I meet a problem.

the string format is: "[{xxxx},{xxxx},{xxxx},{xxxx},{xxxx}......]"

It seems that jsoncpp only can process string like this format: {xxxx} so I can't parse this string.

I had deal with this problem by regex like this: 1716298570192 the code is not complete,when the code meet a json in json, like this:{ A , B , { C , D } , { E } , F }, I think the code will get wrong result.

But i will make it work well.

can I add this function to jsoncpp?