Version: v0.5.0 - Beta.  We welcome contributors & feedback.  THanks!

Jcon.parseFile

Jcon.parseFile(filePath)

Description

Parse a .jcon file in the settings directory and return the data as a List or Map.

let posts = Jcon.parse('newsUpdates.jcon');

posts[0].title;
//= 'Updated the Logo'

//--- file: settings/newsUpdates.jcon ---

[
    {
        title: Updated the Logo
        date: July 17, 2019
    }
    {
        title: New Feed Page
        date: June 8, 2019
    }
    {
        title: Server Upgrade
        date: April 4, 2019
    }
]