use JsonWriter to retreive data