[GRASS-git] [OSGeo/grass] b75eae: v.category: Return JSON array for layers option (#...

Anna Petrasova noreply at github.com
Mon Aug 25 13:00:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: b75eae2a5e6a0215387376ea89060884d06feac3
      https://github.com/OSGeo/grass/commit/b75eae2a5e6a0215387376ea89060884d06feac3
  Author: Anna Petrasova <kratochanna at gmail.com>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    M vector/v.category/main.c
    M vector/v.category/testsuite/test_v_category.py

  Log Message:
  -----------
  v.category: Return JSON array for layers option (#6243)

This simplifies v.category format=json option=layers from a JSON object with key layers to a JSON array which is more consistent with the other options. A list of layer numbers seems like a expected behavior for option=layers with format=json. While an array does not allow easy interface modifications, other outputs can be added using other parameters (as opposed to modifying what option=layers gives).



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