I want to post json data to Go api, But i can't parse json in Go
javascript code:
data= {"user":{"username":"admin","password":"123"},"profile":{"firstname":"morteza","lastname":"khadem","files":["/temp/a.jpg","/temp/b.jpg"]}}
$.post('/parse-json', data, function () {
alert('success');
});
in php get data very simple ($_REQUEST['user']['firstname']) but in Go different
Now i use this code: