Fixed assertion for JSON. refs #740.