JSON mapping utility functions