Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7170917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:18:29+00:00 2026-05-28T15:18:29+00:00

A naive question: As most developers, I periodically have a need to save data

  • 0

A naive question: As most developers, I periodically have a need to save data to disk. Few, few 10s, or few 100s values. Most people use XML, some use JSON, but I always feel that the good old ini-file format

key1=value1

key2=value2

meets my needs best. The files are very readable, one can easily use text-processing on them, diffs in version control work well.

Yet, it seems that key=value is not a very popular in serialization. Am I overlooking something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:18:30+00:00Added an answer on May 28, 2026 at 3:18 pm

    It really depends on what you’re trying to do with those values. With JSON, you can nest arrays of objects (each with their own sets of name/value pairs) in a concise format. Obviously with XML, you can deeply nest objects, and each object can have a number of attributes (which end up being name/value pairs).

    So it comes down to a matter of style.

    Do you like:

    [{Name="John", Last="Smith", Salary="100"},{Name="Mary",Last="Smith",Salary="200}]
    

    or

    <People>
     <Person name="John" last="Smith" salary="100" />
     <Person name="Mary" last="Smith" salary="200" />
    </People>
    

    or

    [Person1]
    Name=John
    Last=Smith
    Salary=100
    
    [Person2]
    Name=Mary
    Last=Smith
    Salary=200
    

    I think if you need to do searching and filtering, XML is probably the format for you. If you’re using your data within JavaScript or sending it to and from different services, JSON is probably the preferred format. And if it’s just data that you need to work with internally, an INI file format is perfectly fine.

    Probably not what you want to hear, but, in my opinion, it really depends.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sorry about the naive question. I have the following: public Array Values {
I have a question that may be quite naive, but I feel the need
This question might be naive as I'm new to ColdFusion programming. I have a
I have a naive question about RSS feeds. I have a series of timed
Embarrassing question really -- I have Subsonic collection, then I filter out some data
Naive question about Java syntax. What does <T> T accept(ObjectVisitorEx<T> visitor); mean? What would
Perhaps this is a naive question. In my understanding, ASP.NET MVC cannot work with
this may be a naive question, but, as asked in the object, what is
I realize this perhaps a naive question but still I cant figure out how
This seems like perhaps a naive question, but I got into a discussion with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.