Skip to content Skip to sidebar Skip to footer

How Do I Print It Into An Organised Json File?

I need help with the output of my json file. I'm trying to print out the keys in a list called keypairs. I have to generate 60 keys, which i have included in the (count<60) part

Solution 1:

I see multiple syntax problems in your code when you are trying to create the json. You could try to do this.

{ Books:
  {
      {
        Book ID:XXXXXXXXSerial No.:XXXXXXX
      },
      {
        Book ID:XXXXXXXSerial No.:XXXXXX
       }
  }
 }

As you can see i wrapped the book items in brackets as well and the items are comma separated now.

This could help you with your problem.

Post a Comment for "How Do I Print It Into An Organised Json File?"