added automatic process k-v pairs + close call
Merge branch 'master' into json_speed_improvements