Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JSONのLS/PS問題

 JSONのLS/PS問題

2018/07/13のJSONの日の発表資料です。

Matsui Masashi

July 13, 2018
Tweet

More Decks by Matsui Masashi

Other Decks in Programming

Transcript

  1. JSONͷLS/PS໰୊
    @circled9
    2018-07-13
    #friday13json

    View full-size slide

  2. ͸͡Ίʹ
    • ͜ͷࢿྉͰ͸ECMA-262ͱECMA-404ͷؒʹ
    ͋ͬͨ࢓༷ؒͷҧ͍ͷ࿩Λ͠·͢ɻ

    View full-size slide

  3. Ecma International
    • ৘ใ௨৴γεςϜ෼໺ʹ͓͚Δࠃࡍతͳඪ४Խ
    ஂମ
    • ݩʑ͸European Computer Manufactures
    Associationͱ͍͏໊લͩͬͨ
    • 1994೥ʹࠃࡍతͳཱ৔Λ൓өͯ͜͠ͷ໊લʹ
    ͳͬͨ

    View full-size slide

  4. ECMA-262ͱECMA-404
    • ECMA-262Ͱ͸ECMAScriptͷ࢓༷ʹ͍ͭͯ
    نఆ͍ͯ͠Δɻ
    • ECMA-404Ͱ͸JSONͷ࢓༷ʹ͍ͭͯنఆ͠
    ͍ͯΔɻ

    View full-size slide

  5. ECMA-262, 9th
    • จࣈྻ͸ғΉͷʹ࢖͍ͬͯΔΫΥʔτͱόο
    ΫεϥογϡͱվߦจࣈҎ֎ͳΒؚΜͰΑ͍
    • վߦจࣈ͸ͷ4ͭ

    View full-size slide

  6. ECMA-404
    • จࣈྻ͸μϒϧΫΥʔτɺόοΫεϥο
    γϡɺ੍ޚจࣈҎ֎ͳΒԿͰ΋Α͍ɻ
    • Any code point except " or \ or control
    character

    View full-size slide

  7. Unicodeͷ੍ޚจࣈ
    • Unicodeͷ੍ޚจࣈʹ౰ͨΔͷ͸ҎԼͷ΋ͷ
    • U+0000 - U+001F (C0੍ޚίʔυ)
    • U+007F (DEL)
    • U+0080 - U+009F (C1੍ޚίʔυ)

    View full-size slide

  8. ࢓༷ؒͷᴥᴪ
    ϫΠʮLSͱPSͬͯจࣈྻʹ͍Εͯ͑͑ͷʁʯ
    ECMA-262ʮվߦจࣈ͔ͩΒΤεέʔϓͤͣʹ
    จࣈྻʹؚΊͨΒ͔͋ΜͰʯ
    ECMA-404ʮ੍ޚจࣈͰ΋ͳ͍͠จࣈྻʹؚΊ
    ͯ΋͑͑Ͱʯ

    View full-size slide

  9. Proposal JSON Superset
    • TC39Ͱ͜ͷ໰୊ʹ͍ͭͯͷproposalΛग़ͯ͠
    ͍Δɻ
    • PSͱLS΋จࣈྻʹؚΊΒΕΔΑ͏ʹ͠Α͏ͥ
    ͱ͍͏ఏҊɻ
    • ݱࡏstage 4ͰES2019ʹ͸ؚΊΒΕΔ༧ఆɻ

    View full-size slide

  10. ·ͱΊ
    • ࢓༷ͬͯΊΜͲ͍͘͞Ͱ͢Ͷ

    View full-size slide

  11. Appendix
    • ECMAScript
    • https://ja.wikipedia.org/wiki/ECMAScript
    • Standard ECMA-262
    • https://www.ecma-international.org/publications/standards/Ecma-262.htm
    • Standard ECMA-404
    • https://www.ecma-international.org/publications/standards/Ecma-404.htm
    • Proposal to make all JSON text valid ECMA-262
    • https://github.com/tc39/proposal-json-superset

    View full-size slide