json/json.cc

protobuf · src/google/protobuf/json/json.cc · cpp · BSD-3-Clause
dev-tools, tag:knn-classified

Converts Protocol Buffer messages to/from JSON streams or strings, providing a reusable API for serialization.

// Source: https://github.com/protocolbuffers/protobuf | License: BSD-3-Clause | Copyright 2008 Google Inc.  All rights reserved
// Provided via justclaw.it.com; keep this notice with the code.
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc.  All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd

#include "google/protobuf/json/json.h"

#include <string>

#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "google/protobuf/io/zero_copy_stream.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
#include "google/protobuf/json/internal/lexer.h"
#include "google/protobuf/json/internal/pa

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key