code: public static List<String> getEventsAsJson() {
          List<String> list = Tracy.EMPTY_STRING_LIST;
          TracyThreadContext ctx = threadContext.get();
          if (isValidContext(ctx)) {
              list = new ArrayList<String>(20);
              for (TracyEvent event : ctx.getPoppedList())	{
                  list.add(event.toJsonString());
              }
          }
          return list;
  	}
docs: Gets List of Tracy events in JSON format
  @return list of Tracy JSONified events