Share, Vote, & Discuss Ideas

We're constantly looking for new ways to improve our products and are asking you to help us by sharing your own ideas, voting for ideas you like, and discussing them with the rest of the community.

-json global option for P4 to return data in json output similar to -ztag

Add a new P4 command line flag called -json which works much like -ztag but the data will be returned in json format which is widely supported in nearly all languages.
  • Guest
  • May 29 2015
  • Attach files
  • J.T. Conklin commented
    September 16, 2015 01:20

    I'd like to see this too, but patterned after the "-G" command line option, which tells p4 to read and write marshalled python dictionary objects.

  • Chip Collier commented
    November 26, 2015 09:49


    For any languages you don't officially support this can be a lot easier to work with perforce than building bindings using the C++ api or parsing output from -ztag.

  • Guest commented
    December 30, 2015 20:35

    I would like it patterned after -G or -R as well.

  • funny jokes commented
    December 11, 2018 10:34

    Thank you for your sharing. Thanks to this article I can learn more things. Expand your knowledge and abilities. Actually the article is very practical. Thank you!

    light novel