I need to concatenate two Json strings. The code for the first one is below.
var output = {
Studios: $('#btnStudios button').map(function() {
return $(this).val();
}).get(),
Platform: $('#btnplatforms button').map(function() {
return $(this).val();
}).get(),
VODEST: $('#btnvodest button').map(function() {
return $(this).val();
}).get(),
SDHD: $('#btnsdhd button').map(function() {
return $(this).val();
}).get(),
Category: $('#btncategory button').map(function() {
return $(this).val();
}).get(),
Genre: $('#btngenre button').map(function() {
return $(this).val();
}).get(),
};
$('.list').html(JSON.stringify(output));
And the result is:
{"Studios":["warner","tf1","gaumont","pathe","studiocanal","francetv","m6snd"],"Platform":["orange","itunes","sfr"],"VODEST":["vod","est"],"SDHD":["sd","hd"],"Category":["film","tv","others"],"Genre":["thriller","action","drama","horror"]}
I need to add this string to it:
var per = {Period: {"From":["W6"],"To":["W18"]}}
How would I go about doing this?