Fixed Bug #104 Call toJSON an static method, not as method of handled object
Merge branch 'bugfix/104' into develop