Server side JSON encoder and file store