McSpidey

McSpidey / Al / 0.1.0

Nested Object Max Depth Finder

10 Credit Royalty API Calls - 155
Returns the maximum depth of a nested object as an int.
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More

Run an Example

Input
Output
"3"

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

algo auth
# Enter API Key: YOUR_API_KEY
CLI Install Docs

Use



algo run McSpidey/Al/0.1.0 -d '["1", "This is depth 1", ["this is depth 2", ["and this is depth 3", "returns an int of 3"]]]' –-timeout 300
  
CLI Docs