code: public static void startActivity(@NonNull Context context, @Nullable JSONArray jsonArray) {
          Intent intent = new Intent(context, JSONViewerActivity.class);
          Bundle bundle = new Bundle();
          if (jsonArray != null) {
              bundle.putString(JSON_ARRAY_STATE, jsonArray.toString());
          }
          intent.putExtras(bundle);
          context.startActivity(intent);
      }
docs: Starts an activity with a json array.
  
  @param context   The context to start the activity.
  @param jsonArray The json array.