got a successful way of giving json to requests. now writing javascript to obtain said json