Skip to content
Advertisement

Extend JSON object by multiple JSON levels

trying to extend existing empty JSON object.

After first 2 simple extends I will get {size: 10, from: 0}.

But when trying $.extend function with multiple level JSON

JavaScript

I have no success.

JavaScript

But getting “Uncaught SyntaxError: missing ) after argument list” error.

I believe overlooked something simple but I am not able to find it.

Advertisement

Answer

Thanks to @Barmar I have final working solution:

JavaScript

This “accidently” resolve partially also cases Elasticsearch Datatables, Datatables pagination with Elasticsearch, dataTable custom loading contents, …

Thank you @Barmar

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement