B4J Question [B4X ]Using the json lib only shows support for b4j?

JakeBullet70

Well-Known Member
Licensed User
Longtime User
I was thinking JSONParser was b4x compatible? Is this the right library?

(You guys are really in trouble as I have not written b4x code in quite a few years... LOL)

1608365617203.png
 

Brian Dean

Well-Known Member
Licensed User
Longtime User
I was thinking JSONParser was b4x compatible?

... and you were right. The common code written under B4X has to be "bridged" to the local Java/environment (Android, iOS, .Net ...) and that is what each library does. Sometimes the "bridging" is done by "internal libraries" like B4XView. Sometimes the code cannot be "bridged" which is where "#if b4j ..." is required.

If you write a B4X project then you will find that all the JSON libraries contain JSONParser. The B4X code is totally common. I suspect also that the JSON libraries are not so very different from each other.
 
Upvote 0
Top