Export values of array property to JSON array

I added new method to export values of a parameter to JSON array or array of models.
Ex. 
[{'id':1,'name':'Aruna'}, {'id':2,'name':'Lakmal'}]