trace_processor: add support for JSON metric output

This supports the use-case of consumers who do not want to depend on protobuf to
consume the output of the trace processor. Instead, they can use their
favourite JSON parsing library along with considering the proto schema
to read the metric values.

We implement this dep-free as we want to remove jsoncpp support eventually.

Bug: 139461901
Change-Id: I993feaf80d0af2170fbd85d55be780de9fe2a5d0
diff --git a/Android.bp b/Android.bp
index 2af83bc..4bfaa94 100644
--- a/Android.bp
+++ b/Android.bp
@@ -4599,6 +4599,7 @@
     "src/trace_processor/metrics/metrics.cc",
     "src/trace_processor/process_table.cc",
     "src/trace_processor/process_tracker.cc",
+    "src/trace_processor/proto_to_json.cc",
     "src/trace_processor/proto_trace_parser.cc",
     "src/trace_processor/proto_trace_tokenizer.cc",
     "src/trace_processor/raw_table.cc",