Added support for json object in the source

With this pull request, you can now pass elements like {id: "myId" name: "Display Name"} in the source and retrieved the active item to know if one of your element was chosen by the user. Useful when display value and save values differs. Any properties can be put on the json object as long as it has a name.