json test case from pull #1179
Merge pull request #1527 from WalterBright/b24

json test case from pull #1179