added refined toJSON
Merge pull request #129 from imrefazekas/master

toJSON refinements