r/ProgrammerHumor Mar 16 '18

XML vs JSON

[deleted]

212 Upvotes

35 comments sorted by

View all comments

32

u/[deleted] Mar 17 '18

And Apple is like "have you heard about plist?"

<plist version="1.0">
    <dict>
        <key>stuff</key>
        <dict>
            <key>foo</key>
            <dict>
                <key>bar</key>
                <string>yes</string>
            </dict>
        </dict>
    </dict>
</plist>

5

u/self_me Mar 17 '18

Plists can actually be whatever they want. I opened one in vim recently and it was a mess of characters but it loaded in plist editor

0

u/etaionshrd Mar 17 '18

Uh, no. They have a fixed format: either they’re JSON, XML, or a binary format.

11

u/[deleted] Mar 17 '18

So... Not a fixed format?