Giter Club home page Giter Club logo

Comments (9)

javadev avatar javadev commented on April 28, 2024 1

New library was released. 🎉

from underscore-java.

javadev avatar javadev commented on April 28, 2024 1

@DubZyy The link to binary jar file. https://repo1.maven.org/maven2/com/github/javadev/underscore/1.49/underscore-1.49.jar

from underscore-java.

javadev avatar javadev commented on April 28, 2024

Hi,

Thank you for the issue.

Which method do you use in your application U.xmlToJson() or U.fromXml() ?

I can add a conversion mode for these methods to replace "-self-closing" : "true" with null.

Sincerely

from underscore-java.

Jitterer avatar Jitterer commented on April 28, 2024

Hi,
first thanks a lot for your very fast response. I'm using xmlToJson method (about this issue). A conversion mode sounds nice. How will it work then? Will this be implemented in an official release?
Thank you!

PS: I also use jsonToXml. I did a quick check what happens with { "nodename" : null } to xml which results in <nodename null="true" /> which is ok I think.

BR

from underscore-java.

javadev avatar javadev commented on April 28, 2024

Hi,

How will it work then? Will this be implemented in an official release?

It may be a new parameter for the xmlToJson(String xml) method.

I suggest to add a mode REPLACE_SELF_CLOSING_WITH_NULL.

Code example String json = xmlToJson(xml, Mode.REPLACE_SELF_CLOSING_WITH_NULL);

Will it be Ok?

Sincerely

from underscore-java.

Jitterer avatar Jitterer commented on April 28, 2024

Hi,
ok I understand. That sounds great! Thx a lot!
BR

from underscore-java.

javadev avatar javadev commented on April 28, 2024

It will be implemented with version 1.49.

from underscore-java.

Jitterer avatar Jitterer commented on April 28, 2024

May I ask you to upload the v1.49 binary file on http://javadev.github.io/underscore-java/ ?
Thanks in advance!

from underscore-java.

Jitterer avatar Jitterer commented on April 28, 2024

Thx a lot. Checked new mode function. Works like a charm. Bye thumbs up

from underscore-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.