Update json.nim

Fixed a bug with json.[], which caused a segfault on debug builds.