Skip to content

Fix to_json escape#2310

Merged
tomkralidis merged 2 commits intogeopython:masterfrom
webb-ben:json_escape
Mar 31, 2026
Merged

Fix to_json escape#2310
tomkralidis merged 2 commits intogeopython:masterfrom
webb-ben:json_escape

Conversation

@webb-ben
Copy link
Copy Markdown
Member

Overview

Fix to_json escape of <> to align the implementation with XML escape & unescape (source code)

Related Issue / discussion

Related to #2304, we have a process that outputs JSON keys of XML sitemaps. The sitemaps are unable to be read because to_json is incorrectly escaping <> by omiting the trailing semi-colon.

Additional information

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

@webb-ben webb-ben requested review from a team and tomkralidis March 31, 2026 13:37
@tomkralidis tomkralidis added the bug Something isn't working label Mar 31, 2026
@tomkralidis tomkralidis added this to the 0.24.0 milestone Mar 31, 2026
@tomkralidis tomkralidis merged commit 08031d4 into geopython:master Mar 31, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants