final NValue<?> parsed = NUtils.JSON.parse(message);
@Override public final NObject json() { if (null == m_json) { if (good()) { final String body = body(); if (null != body) { try { final NValue<?> parsed = NUtils.JSON.parse(body); if (null != parsed) { m_json = parsed.asNObject(); } } catch (Exception e) { Client.get().error("NResponse.json()", e); } } } } return m_json; }
public static final NObject toNObject(String string) { string = StringOps.toTrimOrNull(string); if (null != string) { try { final NValue<?> parsed = NUtils.JSON.parse(string); if (null == parsed) { return null; } return parsed.asNObject(); } catch (Exception e) { return null; } } return null; }
public static final NArray toNArray(String string) { string = StringOps.toTrimOrNull(string); if (null != string) { try { final NValue<?> parsed = NUtils.JSON.parse(string); if (null == parsed) { return null; } return parsed.asNArray(); } catch (Exception e) { return null; } } return null; }
public String toJSONString(final NJSONReplacer replacer, final int indent) { return NUtils.JSON.toJSONString(this, replacer, indent); }
public String toJSONString(final String indent) { return NUtils.JSON.toJSONString(this, indent); }
public String toJSONString(final NJSONReplacer replacer, final String indent) { return NUtils.JSON.toJSONString(this, replacer, indent); }
public String toJSONString() { return NUtils.JSON.toJSONString(this); }
public final String toJSONString(final NJSONReplacer replacer, final int indent) { return JSON.toJSONString(this, replacer, indent); }
public String toJSONString(final int indent) { return NUtils.JSON.toJSONString(this, indent); }
public String toJSONString(final NJSONReplacer replacer, final int indent) { return NUtils.JSON.toJSONString(this, replacer, indent); }
public String toJSONString(final String indent) { return NUtils.JSON.toJSONString(this, indent); }
public final String toJSONString(final NJSONReplacer replacer) { return JSON.toJSONString(this, replacer); }
public final String toJSONString(final NJSONReplacer replacer, final int indent) { return JSON.toJSONString(this, replacer, indent); }
public final String toJSONString(final int indent) { return JSON.toJSONString(this, indent); }
public final String toJSONString() { return JSON.toJSONString(this); }
@Override public String toJSONString(String indent) { return NUtils.JSON.toJSONString(m_jso, indent); }
@Override public String toJSONString(int indent) { return NUtils.JSON.toJSONString(m_jso, indent); }
@Override public String toJSONString() { return NUtils.JSON.toJSONString(m_jso); }
@Override public String toJSONString(NJSONReplacer replacer, String indent) { return NUtils.JSON.toJSONString(m_jso, replacer, indent); } }