Adds GsonProvider implementation from https://gist.github.com/hstaudacher/4967804