This is lovely and I want to share it

I ran across this JSON tutorial that I think is going to be really helpful. (Yes, I’m still messing with JSON.)

http://pythontips.com/2013/08/08/storing-and-loading-data-with-json/

It looks like the site has a bunch of other useful tutorials and stuff. Definitely worth a bookmark if you’re learning Python. I don’t see a Gittip button, so hopefully I can pay the writer in a little well-deserved publicity.

Happy hacking!

Advertisements

3 thoughts on “This is lovely and I want to share it

  1. I just used python 2 days back to make a json data entry app. I wanted to put in a lot of data in the json file manually and couldn’t find any app for that. Though I could use your input if you could help me out.

    Right now my app is fixed with the way my json file is created for example
    {
    “Name”:” Akash”
    “Roll”: 123
    ” Aliases”:[
    {
    “No”:” 1″
    “Alias”: ” bob”
    },
    {
    “No”:” 2″
    “Alias”:” dave”
    }
    ]
    }
    So like what I wanted was to put in more aliases in a friendly manner so that was pretty simple to do but now I want to try to make the app use a template which a user will define which may have objects inside of objects inside of arrays and whatever he may want. This way other may may also be able to use it.

    So I can’t think how I should attack this. Any ideas ?

    Like

  2. I just used python 2 days back to make a json data entry app. I wanted to put in a lot of data in the json file manually and couldn’t find any app for that. So i created it. Though I could use your input if you could help me out in one thing.

    Right now my app is fixed with the way my json file is created for example
    {
    “Name”:” Akash”
    “Roll”: 123
    ” Aliases”:[
    {
    “No”:” 1″
    “Alias”: ” bob”
    },
    {
    “No”:” 2″
    “Alias”:” dave”
    }
    ]
    }
    The python script knows where everything is because i told it. So like what I wanted was to put in more aliases in a friendly manner so that was pretty simple to do but now I want to try to make the app use a template which a user will define which may have objects inside of objects inside of arrays and whatever he may want. This way other people may also be able to use it.

    So I can’t think how I should attack this. Any ideas ?

    Like

    • I’m not sure what you mean when you get to “objects inside objects inside arrays.” You want a user to be able to define the hash’s (dict’s) key fields, right? Is that that you meant by template?

      So I’m not sure where you’re getting this object talk from. Are you sure json can store the type of object you’re thinking about?

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s