bytedance / bytedance/sonic-cpp

是否支持类似rapidjson库的RawValue操作

Open
#113 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
976
Forks
127
PR merge metrics
No merged PRs in 30d

Description

场景是:举个例子需要输出{"name":"{"obj":1}"},而不是

![Image](https://github.com/user-attachments/assets/c1a1ab70-e96a-4f3c-a9ab-93f2a3aa3a24)

value是一个json字符串,业务场景现在不想解析这个庞大json字符串,而是直接作为一个object透传,之前使用rapidjson库的RawValue操作来实现,现在想迁移sonic-cpp库,支持这种操作吗,还是需要如何实现呢,我看源码里有setRaw接口,但是不开放。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.