Improve jsonfile

This make the plugin use a internal format more resilient against someone fiddling directly with it, by using a extension.