Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed Mar 21, 2024
1 parent 43c6046 commit ff6bf7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ arr.add_array_object()
.add_property("name", "tinyjson")
.add_property("author", "Eran Ifrah");

// format it to string
// Format it to string
// You can write to file as well using
// std::ofstream instead of stringstream
std::stringstream ss;
tinyjson::to_string(arr, ss);
std::cout << ss.str() << std::endl;
Expand Down

0 comments on commit ff6bf7a

Please sign in to comment.