json

json

Postby surGom » Fri Aug 05, 2016 11:33 am

Hola compañeros me podrian indicar que librerías si hay que utilizar para xharbour alguna librería en especial.
Y si hay algún equivalente para HB_JsonDecode de harbour en xharbour


Gracias
surGom
 
Posts: 640
Joined: Wed Oct 19, 2005 12:03 pm

Re: json

Postby carlos vargas » Fri Aug 05, 2016 7:11 pm

Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1719
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: json

Postby carlos vargas » Fri Aug 05, 2016 7:14 pm

compiler with xhb
Code: Select all  Expand view

REQUEST HB_CODEPAGE_ES850

Function Main()

Local cUtf8Str := '"Invitaci\u00F3n"'
Local cResult:= ""

HB_SETCODEPAGE( "ES850" )
?HB_JSONENCODE({"Hola",date(), .t., pi()})
Hb_JSONDECODE( cUtf8Str , @cResult )

? cResult

Return Nil
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1719
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 26 guests