Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Jcon.parseFile

Jcon.parseFile($filePath) -> map|list

Description

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

$posts = Jcon.parse('newsUpdates.jcon')

$posts[1].title
//= 'Updated the Logo'


// config/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
    }
]

See Also