public static JSONObject emptyArray(String entityName) throws 
JSONException {
                JSONObject result = new JSONObject();
                JSONArray array = new JSONArray();
                result.put(pluralEntityName(entityName), array);
                return result;
        }
        
        public static String deleteResponse() {
                return "{}";
        }
        
        public static String pluralEntityName(String entityName) {
                return 
ERXStringUtilities.uncapitalize(ERXLocalizer.englishLocalizer().plurifiedString(entityName,
 2));
        }

> On Oct 12, 2015, at 6:37 PM, Michael Kondratov <[email protected]> 
> wrote:
> 
> Frank,
>      We have a quick solution for that. I will post a code snippet.
> 
> Michael
> 
> Sent from my iPhone
> 
> On Oct 12, 2015, at 5:06 PM, Frank Stock <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>> Hi,
>> 
>> 
>> When using Ember as format, If the indexAction has to return an empty array 
>> I always get:  net.sf.json.JSONException: JSON keys cannot be null. Is there 
>> something I can do to prevent that?
>> When doing a test in the ERRestRouteExample, I get the same error.
>> 
>> 
>> Thanks in advance,
>> Frank Stock
>> Belgium
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected] 
>> <mailto:[email protected]>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/michael%40aspireauctions.com
>>  
>> <https://lists.apple.com/mailman/options/webobjects-dev/michael%40aspireauctions.com>
>> 
>> This email sent to [email protected] 
>> <mailto:[email protected]>_______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/michael%40aspireauctions.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to