beginning json method