WIP: Initial record to json implementation