Hierarchical JSON Format (.json)

Follow

Comments

2 comments

  • Avatar
    Iris P

    Good to know about JSON. Nice article. I have found more JSON examples.

    0
    Comment actions Permalink
  • Avatar
    Franco Beatty (Edited )

    I have a nested json file which I need to convert to one record per line . Not sure exactly how to do this . Any help is greatly appreciated.

    with open("file") as jsonfile:
     js = json.load(jsonfile)  
    

    I want to write one record per line in the file this is where I am stuck.

    This is the error I am getting in my apache spark code and which is why I need to convert it.

     

     

    Target 401k

    0
    Comment actions Permalink

Please sign in to leave a comment.