Skip to main content
Known Participant
Jun 15, 2023 8:47 AM UTC
Answered

Using Boost Json library with InDesign SDK

Hi,

 

I would like to use Boost json library in our sdk plugin for InDesign. I understand that this library is not part of the default boost libraries shipped with InDesign.

 

So, I would like to know what is the recommended way of using Boost JSON library in our plugins and keeping the version in sync with each release of the SDK?

 

BTW, how can I tell which version of boost is being used a given version of the plugin sdk?

 

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
erinferinferinf
erinferinferinfCorrect answer
Adobe Employee
Jun 16, 2023 4:10 PM UTC

There's been some discussion about this in the InDesign Developers Prerelease recently:

 

We have managed to push out the boost upgrade(from 1.72 to 1.74) to the 18.5 release. 18.4 release will also be based on the old boost i.e. 1.72.

3 replies

Inspiring
Jul 13, 2023 2:44 AM UTC

Incase boost json not working. You may refer to other json parser.

try RapidJson for C++ -

https://rapidjson.org/

 

- Rahul Rastogi

InDependent Adobe InDesign C++ Plugin Developer

iZine Solutions

Translate
erinferinferinf
Adobe Employee
erinferinferinfCorrect answer
Adobe Employee
Jun 16, 2023 4:10 PM UTC

There's been some discussion about this in the InDesign Developers Prerelease recently:

 

We have managed to push out the boost upgrade(from 1.72 to 1.74) to the 18.5 release. 18.4 release will also be based on the old boost i.e. 1.72.

Translate
Community Expert
Jun 16, 2023 2:34 AM UTC
quote

BTW, how can I tell which version of boost is being used a given version of the plugin sdk?

By @asaxena

In the SDK if you traverse to the path

<SDK Base Path>/external/dva/third_party/boost_libraries/boost you can check the version.hpp this would give you the version of boost shipped with the SDK. For JSON parsing I see a folder at

<SDK Base Path>/external/dva/third_party/boost_libraries/boost/property_tree/json_parser

For JSON you could also look at something like the following, the best part about this is that it is a single header file to include in your project and you are all set to go.

https://github.com/nlohmann/json

-Manan

 

Translate
-Manan