Adds functions that take JSON encode/decode callbacks