append .json correctly