Coder Social home page Coder Social logo

Comments (10)

ferhatsb avatar ferhatsb commented on July 26, 2024

Is it about mapping? Can you give more details please ?

from jest.

lxbzmy avatar lxbzmy commented on July 26, 2024

I use this project interact with ElasticSearch ,ES default support date
format is ISO type,like this ""time":"2013-06-15T16:52:34""

But GSON default convert Date to another type.so ES recongize my date to a
string.

2013/6/18 Ferhat Sobay [email protected]

Is it about mapping? Can you give more details please ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-19572092
.

from jest.

kramer avatar kramer commented on July 26, 2024

lxbzmy, Have you checked this out: http://stackoverflow.com/questions/7910734/gsonbuilder-setdateformat-for-2011-10-26t202959-0700 ?

from jest.

lxbzmy avatar lxbzmy commented on July 26, 2024

sure£¬I googled that tip. But I also check u source code, I found I source u
write

new GSON().toJSNO();

I have no way to setup gson as u only create it yourself.

2013/6/18 Cihat Keser [email protected]

lxbzmy, Have you checked this out:
http://stackoverflow.com/questions/7910734/gsonbuilder-setdateformat-for-2011-10-26t202959-0700?

¡ª
Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-19593635
.

from jest.

kramer avatar kramer commented on July 26, 2024

ah ok then, that's why ferhat asked bout your use case :)
i agree that gson instance should be configurable by user. maybe i can have a look into it if ferhat agrees too.

btw, this issue only comes up during java-to-json conversions, right? it'd be great if you could provide some test cases...

from jest.

ferhatsb avatar ferhatsb commented on July 26, 2024

Be my guest kramer :)

from jest.

lxbzmy avatar lxbzmy commented on July 26, 2024

Ah. u r right. I check u source code and found extra code for String
detect. so I only use jackson mapper to string and pass it to jest.

2013/6/18 Cihat Keser [email protected]

ah ok then, that's why ferhat asked bout your use case :)
i agree that gson instance should be configurable by user. maybe i can
have a look into it if ferhat agrees too.

btw, this issue only comes up during java-to-json conversions, right? it'd
be great if you could provide some test cases...


Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-19594702
.

from jest.

kramer avatar kramer commented on July 26, 2024

I suspect this issue will still come up with action classes that doesn't
take string as source parameter, need further investigation.
18 Haz 2013 10:34 tarihinde "lxbzmy" [email protected] yazdı:

Ah. u r right. I check u source code and found extra code for String
detect. so I only use jackson mapper to string and pass it to jest.

2013/6/18 Cihat Keser [email protected]

ah ok then, that's why ferhat asked bout your use case :)
i agree that gson instance should be configurable by user. maybe i can
have a look into it if ferhat agrees too.

btw, this issue only comes up during java-to-json conversions, right?
it'd
be great if you could provide some test cases...


Reply to this email directly or view it on GitHub<
https://github.com/searchbox-io/Jest/issues/44#issuecomment-19594702>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-19595429
.

from jest.

ferhatsb avatar ferhatsb commented on July 26, 2024

Can we close this ?

from jest.

lxbzmy avatar lxbzmy commented on July 26, 2024

ok.

2013/6/25 Ferhat Sobay [email protected]

Can we close this ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/44#issuecomment-19978176
.

from jest.

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.