1 //===-- argdumper.cpp --------------------------------------------*- C++-*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "lldb/Utility/JSON.h"
11 #include "lldb/Utility/StreamString.h"
15 using namespace lldb_private;
17 int main(int argc, char *argv[]) {
18 JSONArray::SP arguments(new JSONArray());
19 for (int i = 1; i < argc; i++) {
20 arguments->AppendObject(JSONString::SP(new JSONString(argv[i])));
23 JSONObject::SP object(new JSONObject());
24 object->SetObject("arguments", arguments);
30 std::cout << ss.GetData() << std::endl;