Java Json String Create toJsonField(String name, String value)

Here you can find the source of toJsonField(String name, String value)

Description

to Json Field

License

Open Source License

Declaration

public static String toJsonField(String name, String value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String toJsonField(String name, String value) {
        return "\"" + name + "\":\"" + value + "\"";
    }/* w  ww .  java  2s  . c  om*/
}

Related

  1. toJson(String s)
  2. toJson(String str)
  3. toJson(String str)
  4. toJSON(String string)
  5. toJsonArrays(String... strings)
  6. toJsonName(String name, int prefixLen)
  7. toJsonUrl(String pUrl)
  8. toJSONValue(Enum e)
  9. write2Json(String json, String path, String name)