added lines reading postdata JSON