Jump to content
Fórum Script Brasil
  • 0

Passando de string para JSON



Estou tentando a dias passar esse retorno (string) para um JSON valido.

name=lucia service=pppoe caller-id=00:1A:3F:19:D3:FB address= uptime=1w2d8h38m57s encoding= session-id=0x81100027 limit-bytes-in=0 limit-bytes-out=0 1 R name=pontocom service=pppoe caller-id=00:1A:3F:1C:82:97 address= uptime=1w2d8h38m56s encoding= session-id=0x81100028 limit-bytes-in=0 limit-bytes-out=0 2 R name=nivaldo service=pppoe caller-id=C8:3A:35:30:70:60 address= uptime=1w2d8h38m52s encoding= session-id=0x81100032 limit-bytes-in=0 limit-bytes-out=0 3 R name=celestino service=pppoe caller-id=00:02:6F:9D:ED:02 address= uptime=1w2d8h38m41s encoding= session-id=0x81100041 limit-bytes-in=0 limit-bytes-out=0 4 R name=mobilepraca service=pppoe caller-id=4C:5E:0C:2D:F7:98 address= uptime=1w2d8h38m15s encoding= session-id=0x8110007A limit-bytes-in=0 limit-bytes-out=0

São 4 registros. alguém tem uma ideia como fazer?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...