JSON API version: 20180813 converts empty xml elements to empty string in place of empty JSON Object

Aperta
#445 15 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java, json, xml

Direzione di ricerca

Start by reproducing the reported empty XML element conversion with JSON API versions 20090211 and 20180813, using the code and outputs attached to the issue. Trace the conversion behavior and verify that the newer version produces the expected empty JSON object rather than an empty string.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Active discussion

Recently, for a requirement I had to move to version:20180813 of JSON API. Earlier I was using version:20090211 of JSON API. For empty xml element, version:20090211 returns empty JSON Object ({}); but version:20180813 returns empty string (""). This change has broke my working application.

Here is chunk of code:
org-json

Output with version: 20090211
version-20090211

Output with version: 20180813
version-20180813

Lingua principale
Java
Stelle
4.7k
Fork
2.6k
Merge medio
11g 18m
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stleary/JSON-java

Tutte le issue di stleary/JSON-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.