Skip to content

Commit

Permalink
Issue #95 Adds a printout of the Object comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DieSlower committed Jan 19, 2019
1 parent 1164f2b commit 8ae0ef7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Examples/Json/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ int main(int argc, char** argv)

std::cout << "\nJSON Array Size: " << jsArr.Size() << std::endl;

trUtil::JSON::Object jsObj = configFile.GetObject("MyObject");
std::cout << "\nJSON Object in RAM:\n" << std::endl;
jsObj.PrintJSONRoot();

std::cout << "\nPrinting the Object Comment: " << jsObj.GetComment() << "\n\n" << std::endl;

//Ending program
trUtil::Console::TextColor(trUtil::Console::TXT_COLOR::BRIGHT_RED);
std::cerr << "True Reality is now shutting down ... " << std::endl;
Expand Down

0 comments on commit 8ae0ef7

Please sign in to comment.