0

I'm trying to load in json objects from a file we'll call database.db. The objects in this database are

{"name":"apple"}
{"name":"banana"}
{"name":"cranberry"}

I was able to load in data perfectly when the format of the document was...

{
fruits = [

    {"name":"apple"}
    {"name":"banana"}
    {"name":"cranberry"}
]
}

Unfortunately, I can't simply add in the fruits = portion to the new database.db and was wondering if there was a work around here. The error i'm getting is Extra data: line 2 column 1. Thanks in advance!

Bob
  • 1,344
  • 3
  • 29
  • 63

0 Answers0