Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Another rant -- JSON key naming convention

Another rant -- JSON key naming convention

Scheduled Pinned Locked Moved The Lounge
pythonrubycomdata-structuresjson
14 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Marc Clifton

    {"account-number": "1234"} Seriously? A dash? I know some languages support that (I think Ruby? X| ) but really, can we get with modern and more standard keys that are easily serializable from the object? Now I'll have to code attributes for the key names. :mad:

    Latest Article - A 4-Stack rPI Cluster with WiFi-Ethernet Bridging Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

    M Offline
    M Offline
    Matias Lopez
    wrote on last edited by
    #5

    account-number is JavaScript friendly like accountNumber. Account_Number is SQL friendly (for example). It does not bother me too much this types of key naming convention...

    P 1 Reply Last reply
    0
    • M Marc Clifton

      {"account-number": "1234"} Seriously? A dash? I know some languages support that (I think Ruby? X| ) but really, can we get with modern and more standard keys that are easily serializable from the object? Now I'll have to code attributes for the key names. :mad:

      Latest Article - A 4-Stack rPI Cluster with WiFi-Ethernet Bridging Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

      R Offline
      R Offline
      raddevus
      wrote on last edited by
      #6

      Why hasn't camelCase or PascalCase simply taken over the world by now? What is wrong with people? Why would some dev who types with two fingers want to reach up there for a dash anyways? What is wrong with people? :laugh:

      P 1 Reply Last reply
      0
      • R raddevus

        Why hasn't camelCase or PascalCase simply taken over the world by now? What is wrong with people? Why would some dev who types with two fingers want to reach up there for a dash anyways? What is wrong with people? :laugh:

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #7

        camelCase is filth.

        R 1 Reply Last reply
        0
        • M Matias Lopez

          account-number is JavaScript friendly like accountNumber. Account_Number is SQL friendly (for example). It does not bother me too much this types of key naming convention...

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #8

          T-SQL accepts [account number] , but that doesn't make it right.

          M 1 Reply Last reply
          0
          • P PIEBALDconsult

            camelCase is filth.

            R Offline
            R Offline
            raddevus
            wrote on last edited by
            #9

            PIEBALDconsult wrote:

            camelCase is filth.

            I hope you are serious. And I hope you are saying that because you are a staunch supporter of PascalCase. If you are one of those Hungarian Notation people, we will have to remove your dev card. :laugh: Back in the day Hungarian would fly, but now, we kick you off of CP for that. :laugh:

            P 1 Reply Last reply
            0
            • M Marc Clifton

              {"account-number": "1234"} Seriously? A dash? I know some languages support that (I think Ruby? X| ) but really, can we get with modern and more standard keys that are easily serializable from the object? Now I'll have to code attributes for the key names. :mad:

              Latest Article - A 4-Stack rPI Cluster with WiFi-Ethernet Bridging Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

              R Offline
              R Offline
              Rick York
              wrote on last edited by
              #10

              If it's "only" a convention why follow it? Is an underscore unacceptable?

              "They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"

              1 Reply Last reply
              0
              • R raddevus

                PIEBALDconsult wrote:

                camelCase is filth.

                I hope you are serious. And I hope you are saying that because you are a staunch supporter of PascalCase. If you are one of those Hungarian Notation people, we will have to remove your dev card. :laugh: Back in the day Hungarian would fly, but now, we kick you off of CP for that. :laugh:

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #11

                Hungarian (ptui) is the worst form of camelCase.

                1 Reply Last reply
                0
                • P PIEBALDconsult

                  T-SQL accepts [account number] , but that doesn't make it right.

                  M Offline
                  M Offline
                  Matias Lopez
                  wrote on last edited by
                  #12

                  [account number] isn't development friendly, it's only for reports... It's disgustingly horrible (for DataColumns). :laugh:

                  P 1 Reply Last reply
                  0
                  • M Matias Lopez

                    [account number] isn't development friendly, it's only for reports... It's disgustingly horrible (for DataColumns). :laugh:

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #13

                    How about this one I have to deal with? [Is the application used to provide merchant or other external entities with PAN/SAD related services]

                    1 Reply Last reply
                    0
                    • M Marc Clifton

                      {"account-number": "1234"} Seriously? A dash? I know some languages support that (I think Ruby? X| ) but really, can we get with modern and more standard keys that are easily serializable from the object? Now I'll have to code attributes for the key names. :mad:

                      Latest Article - A 4-Stack rPI Cluster with WiFi-Ethernet Bridging Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                      D Offline
                      D Offline
                      Dr Walt Fair PE
                      wrote on last edited by
                      #14

                      Please calm down and slowly back away from the keyboard. There problem solved.

                      CQ de W5ALT

                      Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups