added direct input via json

Added direct input via json object to don't depend on table or ajax