Add .toJSON() methods to the GeolocationCoordinates and GeolocationPosition interfaces. These methods will aid in developing automated tests for the Geolocation API and may be useful for debugging as well. If the API were developed today, these WebIDL interfaces would likely be WebIDL dictionaries instead. However, given compatibility constraints, this is the next best option for making these types serializable.
Enables serialization of these objects with JSON.stringify().