<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/16009897?s=20&v=4" /><strong>k-yle</strong> created an issue <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5970">(openstreetmap/openstreetmap-website#5970)</a></div>
<h3 dir="auto">Problem</h3>
<ul dir="auto">
<li><strong>As a</strong> developer of web-based tools,</li>
<li><strong>I want</strong> to avoid bundling a massive xml-parsing library just for a single API endpoint (since almost all others support JSON now)</li>
<li><strong>so that</strong> the page loads faster, we avoid unnecessary library, avoid boilerplate code, etc. etc.</li>
</ul>
<h3 dir="auto">Description</h3>
<p dir="auto">Over the years, JSON support has gradually been added to most APIs.</p>
<p dir="auto">Uploading & downloading changesets are one of the few APIs that are still XML-only.</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2317198063" data-permission-text="Title is private" data-url="https://github.com/zerebubuth/openstreetmap-cgimap/issues/407" data-hovercard-type="pull_request" data-hovercard-url="/zerebubuth/openstreetmap-cgimap/pull/407/hovercard" href="https://github.com/zerebubuth/openstreetmap-cgimap/pull/407">zerebubuth/openstreetmap-cgimap#407</a> tracks uploading changesets as JSON</li>
<li>In this issue tracks downloading changesets in JSON</li>
</ul>
<p dir="auto">I imagine we could just create <code class="notranslate">/changeset/:id/download.json</code> to match <code class="notranslate">/changeset/:id/download</code>. The JSON format would be the same as what <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2317198063" data-permission-text="Title is private" data-url="https://github.com/zerebubuth/openstreetmap-cgimap/issues/407" data-hovercard-type="pull_request" data-hovercard-url="/zerebubuth/openstreetmap-cgimap/pull/407/hovercard" href="https://github.com/zerebubuth/openstreetmap-cgimap/pull/407">zerebubuth/openstreetmap-cgimap#407</a> is proposing<sup><a href="#user-content-fn-1-3eee92c6c22bd9e8adc5116e3759a288" id="user-content-fnref-1-3eee92c6c22bd9e8adc5116e3759a288" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup></p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><em>No response</em></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only" dir="auto">Footnotes</h2>
<ol dir="auto">
<li id="user-content-fn-1-3eee92c6c22bd9e8adc5116e3759a288">
<p dir="auto">specially, a single array with <code class="notranslate">"action": "create" | "modify" | "delete"</code> instead of the 3 arrays for <code class="notranslate">create</code>, <code class="notranslate">modify</code>, <code class="notranslate">delete</code> which is more similar to the current XML format. <a href="#user-content-fnref-1-3eee92c6c22bd9e8adc5116e3759a288" data-footnote-backref="" aria-label="Back to reference 1" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5970">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKU5D47LBVRVDZMVX324CZKLAVCNFSM6AAAAAB4FNOVZ2VHI2DSMVQWIX3LMV43ASLTON2WKOZTGAZTCMBSGM2TGNY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNDPSXAFK25OX6LHID24CZKLA5CNFSM6AAAAAB4FNOVZ2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLJKN7WE.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/5970</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/5970",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5970",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>