cpp-redis / cpp_redis

C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform
MIT License
713 stars 198 forks source link

reading json from cpp_redis::reply causes string to be double escaped #88

Closed nileshbhise closed 2 years ago

nileshbhise commented 2 years ago

I am trying to fetch a json stored as string in redis. When I use cout << reply.get(); I do get proper JSON in terminal window. However, when I try to get it in a variable with as_string() it is coming in as a double escaped and JJson is not recognizing it

nileshbhise commented 2 years ago

jjson::parse solved the issue