basicJSONHandler: Create handler for processing JSON elements from a parser
Description
This function creates a handler object that is used to
consume tokens/elements from a JSON parser and combine
them into R objects.
This is slow relative to using C code because this is done
in R and also we don't know the length of each object until
we have consumed all its elements.