Hosted API, code: 14004

I try to figure out how Hosted API services are working.

I wrote same code as in this video - https://backendless.com/category/api-engine/

package com.mbaas.services;




import com.backendless.Backendless;
import com.backendless.BackendlessUser;
import com.backendless.servercode.IBackendlessService;
import java.util.*;


public class FriendsAPI implements IBackendlessService {


    public String sayHello(String name) {
        return "Hello, " + name;
    }

but when i try to run it a get this response:

{
  "code": 14004,
  "message": "Service invocation failed: ExceptionClass:\"RuntimeException\" {Msg:\"com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Bob': was expecting ('true', 'false' or 'null')\n at [Source: java.io.ByteArrayInputStream@496a99ec; line: 1, column: 7]\", Cause:\"Unrecognized token 'Bob': was expecting ('true', 'false' or 'null')\n at [Source: java.io.ByteArrayInputStream@496a99ec; line: 1, column: 7]\"}"
}

How can i solve this?

Hello!

I assume that you’re trying to call this method using API inspector. If so - then the argument should be surrounded by double-quotes like “Bob” instead of just Bob.
Alex