Added JSON utility functions.