toJSON no longer results in an infinite loop, returns simple objects
Merge pull request #1016 from FredKSchott/toJSON-loop

toJSON no longer results in an infinite loop, returns simple objects