senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Ryō Igarashi (neet@mastodon.social)'s status on Sunday, 09-Sep-2018 21:08:43 JST Ryō Igarashi Ryō Igarashi

    なんだこれ? Someone know about this behaviour of JSON.parse?

    In conversation Sunday, 09-Sep-2018 21:08:43 JST from mastodon.social permalink

    Attachments


    1. https://media.n-sr.org/media_attachments/files/000/259/447/original/2ba92f8ecb4c63d1.png
    • いたばしのげんちゃん。​:verified: repeated this.
    • Eugen (gargron@mastodon.social)'s status on Sunday, 09-Sep-2018 21:09:49 JST Eugen Eugen
      • せのお (妹尾 賢)

      @neet JSON.parse('{}') -> Object

      JSON.parse('"foo"') -> String

      JSON.parse('1') -> Number

      In conversation Sunday, 09-Sep-2018 21:09:49 JST permalink
      いたばしのげんちゃん。​:verified: and Asmodeus :dumpling: ? repeated this.
    • Eugen (gargron@mastodon.social)'s status on Sunday, 09-Sep-2018 21:22:01 JST Eugen Eugen
      • せのお (妹尾 賢)

      @neet Oh, I see. JavaScript numbers don't support bigint so they overflow. You need to use strings for really large numbers.

      In conversation Sunday, 09-Sep-2018 21:22:01 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.