Bug in json functions currently debugging.