Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    33
    Answers
    3
    Vote Rating
    1
    Forn is on a distinguished road

      0  

    Default Answered: FormPanel and unexpected character while parsing JSON result

    Answered: FormPanel and unexpected character while parsing JSON result


    Hello. I have and get the error unexpected character on JSONParser.parseStrict(resultHtml):
    Code:
    form.addSubmitCompleteHandler(new SubmitCompleteHandler() {
                    @Override
                    public void onSubmitComplete(SubmitCompleteEvent event) {
                        try {
                            String resultHtml = event.getResults();
                            if ((resultHtml != null) && (!resultHtml.equals(""))) {
                                JSONArray value = (JSONArray) JSONParser.parseStrict(resultHtml);
                                if (value != null) {
                                    if (!Boolean.parseBoolean(value.get(1).toString())) {
                                        MessageBox message = new MessageBox("Error");
                                        message.setMessage(value.get(0).toString());
                                        message.setIcon(MessageBox.ICONS.error());
                                        message.show();
                                    }
                                }
                            }
                        } catch (Exception error) {
                            MessageBox message = new MessageBox("Error");
                            message.setMessage(error.getMessage());
                            message.setIcon(MessageBox.ICONS.error());
                            message.show();
    
                        }
                    }
                });
    The result text is:
    Code:
    {"errorMessage":null,"success":true,"loggedIn":true,"username":"forn","data":null,"total":null,"totalCount":null,"securityConfig":null}

  2. The problem solver by: JSONObject obj = value.isObject();

  3. #2
    Sencha User
    Join Date
    Mar 2012
    Posts
    33
    Answers
    3
    Vote Rating
    1
    Forn is on a distinguished road

      0  

    Default


    The problem solver by: JSONObject obj = value.isObject();