[GRASS-git] [OSGeo/grass] fbc99e: r.what: Add JSON output (#3528)

kritibirda26 noreply at github.com
Thu Mar 28 13:49:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: fbc99e8fe809aea03c2cba57524ec6264e9ef94d
      https://github.com/OSGeo/grass/commit/fbc99e8fe809aea03c2cba57524ec6264e9ef94d
  Author: kritibirda26 <164247895+kritibirda26 at users.noreply.github.com>
  Date:   2024-03-28 (Thu, 28 Mar 2024)

  Changed paths:
    M raster/r.what/Makefile
    M raster/r.what/main.c
    M raster/r.what/testsuite/test_r_what.py

  Log Message:
  -----------
  r.what: Add JSON output (#3528)

* [feat] Add JSON output to r.what

Added an option format which accepts the value "plain" for the current
output format and "json" for the JSON output. The newly added parson library
is being used here.

Also, added a couple of python tests to ensure JSON output works as expected.

* fix clang format

* fix python black formatting

* fix changes from code review



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list