Java Json String Create toJson(String jsonp)

Here you can find the source of toJson(String jsonp)

Description

to Json

License

Apache License

Declaration

public static final String toJson(String jsonp) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final String toJson(String jsonp) {
        final String prefix = "loaded(";
        final String suffix = ")";
        return jsonp.substring(0 + prefix.length(),
                jsonp.length() - suffix.length());
    }/*from   w  ww.  j  a  v a 2s  . c o  m*/
}

Related

  1. toJson()
  2. toJson(final Document doc)
  3. toJson(Object value)
  4. toJson(String org)
  5. toJson(String s)
  6. toJson(String str)
  7. toJson(String str)