小编Nic*_*pel的帖子

从JSONArray转换为String然后再返回

我需要将JSONArray对象存储为字符串,然后检索字符串并将其转换回JSONArray.

如果我做:

JSONArray jArray;
String s = jArray.toString()
JSONArray newJArray = new JSONArray(s);
Run Code Online (Sandbox Code Playgroud)

我会找回同一个物体吗?

我正在尝试将JSONArray存储在SQLite数据库中.

这就是我正在看的东西.http://developer.android.com/reference/org/json/JSONArray.html#toString()

java string android json

50
推荐指数
1
解决办法
9万
查看次数

Ansible ad-hoc命令可以正常工作,但运行Playbook无法使用ssh进行身份验证

我正在尝试使用Ansible部署到服务器环境.我已将我的公共ssh密钥正确添加到服务器的授权密钥文件中.

我可以ssh:

$ ssh root@104.131.217.58
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-24-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Fri Aug  1 00:11:42 EDT 2014

  System load:  0.28              Processes:           67
  Usage of /:   7.7% of 19.56GB   Users logged in:     0
  Memory usage: 9%                IP address for eth0: 104.131.217.58
  Swap usage:   0%

  Graph this data and manage this system at:
    https://landscape.canonical.com/

0 packages can be updated.
0 updates are security updates.

Last login: Fri Aug  1 00:11:42 2014 from d108-180-5-156.bchsia.telus.net …
Run Code Online (Sandbox Code Playgroud)

ssh ansible ansible-playbook

3
推荐指数
1
解决办法
2535
查看次数

标签 统计

android ×1

ansible ×1

ansible-playbook ×1

java ×1

json ×1

ssh ×1

string ×1