25 #ifndef TRACE_JSON_SERIALIZATION_H
26 #define TRACE_JSON_SERIALIZATION_H
29 #include "pxr/base/trace/collection.h"
31 PXR_NAMESPACE_OPEN_SCOPE
46 const std::vector<std::shared_ptr<TraceCollection>>& collections);
52 PXR_NAMESPACE_CLOSE_SCOPE
54 #endif // TRACE_JSON_SERIALIZATION_H
This class contains methods to read and write TraceCollections in JSON format.
static bool WriteCollectionsToJSON(JsWriter &js, const std::vector< std::shared_ptr< TraceCollection >> &collections)
Write a JSON representation of collections.
A discriminated union type for JSON values.
static std::unique_ptr< TraceCollection > CollectionFromJSON(const JsValue &)
Creates a TraceCollection from a JSON value if possible.
This class provides an interface to writing json values directly to a stream.