Coder Social home page Coder Social logo

Comments (6)

fengmk2 avatar fengmk2 commented on June 22, 2024

I think the best way is tell TOP this issue and let them return a new property is_str like weibo API does.

from top.

lukewarm avatar lukewarm commented on June 22, 2024

Makes sense to me. Will open a ticket there. Don't know if will change though :-). Thanks for the great package.

from top.

fengmk2 avatar fengmk2 commented on June 22, 2024

Can you upload a json result for this issue, I want to wrap this issue
before TOP accept the solution.
在 2013-10-5 AM9:58,"lukewarm" [email protected]写道:

Makes sense to me. Will open a ticket there. Don't know if will change
though :-). Thanks for the great package.


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

from top.

lukewarm avatar lukewarm commented on June 22, 2024

Not sure if I understand what's needed. Let me know if this is not helpful. Sorry, I'm new to to JavaScript.

This is the parsed results. The id property is the integer that's too long and rounded down.

{
  tmc_messages_consume_response: {
    messages: {
      tmc_message: [
        {user_id: 123456789,
         user_nick: 'usernick',
         content: '{"nick":"usernick","increment":1,"num":502,"changed_fields":"num","num_iid":15380658823}',
         id: 7104300007405429000,
         pub_time: '2013-10-05 10:55:58',
         pub_app_key: '12499723',
         topic: 'taobao_item_ItemStockChanged' }
        ]
    }
  }
}

JSON string

{"tmc_messages_consume_response":{"messages":{"tmc_message":[{"user_id":123456789,"user_nick":"usernick","content":"{\\"nick\\":\\"usernick\\",\\"increment\\":1,\\"num\\":502,\\"changed_fields\\":\\"num\\",\\"num_iid\\":15380658823}","id":7104300007405429232,"pub_time":"2013-10-05 10:55:58","pub_app_key":"12499723","topic":"taobao_item_ItemStockChanged"}]}}}

from top.

fengmk2 avatar fengmk2 commented on June 22, 2024

@lukewarm I fix this on [email protected] , change Long Number id property to String id.

from top.

lukewarm avatar lukewarm commented on June 22, 2024

Awesome man! Will post any updates here when TOP responds to the request of a string id.

from top.

Related Issues (9)

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.