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.
BetaIn future versions, this function will probably return a JconReader object instead of flat data.
$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
}
]