View gist:06eb117c0f0f0af7a70423ef89ccadb6
readObject =>(){ | |
obj={} | |
while (!testNext('}')){ | |
readKeyAndValue(obj) | |
nextIf(',') | |
} | |
reutrn obj | |
} | |
result = readObject() |