Fix op::decode with json protocol
commitdaea37ed4600797853e8f598d8b95bd768e01030
authorTJ Yin <ytj@meta.com>
Fri, 16 Dec 2022 20:04:37 +0000 (16 12:04 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 16 Dec 2022 20:04:37 +0000 (16 12:04 -0800)
tree883e4da372b6df874f436d1ace6aa7ba1b89e26d
parentb77e85b21e8589b5f7ca85508df2ca163f9683c0
Fix op::decode with json protocol

Summary: When decoding list/set/map with json protocol, we won't know the size and field type beforehand. We need to use a different algorithm.

Reviewed By: iahs

Differential Revision: D42091343

fbshipit-source-id: def11d6a429c0b990c5321cd916d81813d368f7c
third-party/thrift/src/thrift/lib/cpp2/op/detail/Encode.h
third-party/thrift/src/thrift/test/UseOpEncodeTest.cpp