use new Json and Timestamp API