Can encode and decode JSON