Add JSON unmarshaller
Basic consume function