Updated `getDataOptions()` method to use JSON.