Fixed implementation of json read and writing. Also reenabled the default cflab data function in init.