JSON reader of OS X

DaveyDave
DaveyDave
Community Member
edited May 2016 in Families

I was originally unsure if I wanted to use Families due to the lack of a local backup. I now realize that a good solution for me would be to periodically export my data as a PIF file to an encrypted disk image. I believe this will ensure my backup data is secure in a format that I can read, if necessary.

To ensure security, I obviously won't upload my data to on online JSON reader to view the PIF file. Does anyone have a recommendation for a local JSON viewer/reader that will enable me to see my data in an easy to read format? Either OS X or Windows versions would be fine.

Thanks for your help.


1Password Version: 6.3 Mac / 6.4.1 iOS
Extension Version: 4.5.6
OS Version: OS X 10.11.5
Sync Type: Families

Comments

  • MrC
    MrC
    Volunteer Moderator
    edited May 2016

    @DaveyDave,

    Not knowing what you'll eventually do with the prettied JSON output, I'll first assume you want to be able to read it all in one shot, and so will recommend the onepif2html converter in the converter suite suite. Just drag your 1PIF onto the AppleScript Conversion Helper, select the onepif2html converter, and it will dump a 1P_print.html file you can view in your browser. See the Samples mentioned in the first post. Use the 1.09 version in Testing Bits.

    If you want something simpler and raw, I frequently use the Perl JSON_PP module,

    {
       "locationKey" : "example.com",
       "title" : "Login - stock",
       "typeName" : "webforms.WebForm",
       "securityLevel" : "SL5",
       "openContents" : {
          "tags" : [
             "STOCK",
             "Other",
             "Grumpy"
          ]
       },
       "contentsHash" : "89d5f39c",
       "createdAt" : 946713600,
       "updatedAt" : 1410140677,
       "uuid" : "CC4606D2964F48C2B7462C35AA74B763",
       "secureContents" : {
          "notesPlain" : "These are my nifty Notes\nline 2\nline 3\né π ß",
          "fields" : [
             {
                "type" : "T",
                "designation" : "username",
                "value" : "myusername",
                "name" : "username"
             },
             {
                "name" : "password",
                "type" : "P",
                "designation" : "password",
                "value" : "mypassword"
             }
          ],
          "URLs" : [
             {
                "label" : "website",
                "url" : "http://www.example.com"
             }
          ]
       },
       "location" : "http://www.example.com"
    }
    

    But you'll have to take care to deal with AgileBits unique record separator, the string: ***5642bee8-a5ff-11dc-8314-0800200c9a66***. A 1PIF isn't a strict JSON file due to this, so other JSON viewers may have trouble.

  • DaveyDave
    DaveyDave
    Community Member

    @MrC Thanks for the helpful info. That unique record separator was causing problems for the JSON readers I found.

  • nmott
    nmott
    1Password Alumni

    @daveydave I'm glad that MrC was able to help you out. Let us know if there's anything else we can answer or help with 8-)

This discussion has been closed.