• Resolved joefee

    (@joefee)


    Using the example found in WordPress: (Example JSON: [[“ISBN”,”TITLE”,”AUTHOR”],[“UPC”,”TITLE”,”AUTHOR”]])

    I created a test JSON file, when I enter the URL the Preview section states to “Enter item identifiers and save the post to see a preview of the bookshelf.”

    Below is the test Json file:

    [[“9780759529519”, “Maximum Ride. The manga, 1”, “Lee, NaRae.”], [“9781439190661”, “Our bodies, ourselves”, “”]]

    Am I missing a step?

    • This topic was modified 1 year, 1 month ago by joefee.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author photonicgnostic

    (@photonicgnostic)

    Does your JSON file display correctly when you view it in your browser? If the JSON above is exactly what is in your file then it’s invalid. It has right and left quotes, which JSON doesn’t like.

    I tested a file with the JSON below and it works:
    [[“9780759529519”, “Maximum Ride. The manga, 1”, “Lee, NaRae.”],[“9781439190661”, “Our bodies, ourselves”, “”]]

    Once the Bookshelf is saved with valid JSON, you can switch back to Input items as a list to verify the data is parsed as you expect.

    Thread Starter joefee

    (@joefee)

    It does display correctly, looks like the editor here changed them…

    However, using Postman, I found that the PowerShell script that’s creating the JSON file was saving it as utf8-BOM which inserted “nul” characters in-between every character. I’ve corrected that and the plugin is working as expected.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JSON Data’ is closed to new replies.